{"comment":{"url":"https://api.github.com/repos/madvay/j2objc-common-libs-e2e-test/comments/13480948","html_url":"https://github.com/madvay/j2objc-common-libs-e2e-test/commit/89f147ba855dc5ef441f54504272a4f8ec9cacc5#commitcomment-13480948","id":13480948,"user":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"position":22,"line":22,"path":"libraryBuilds/common/prep-tests.sh","commit_id":"89f147ba855dc5ef441f54504272a4f8ec9cacc5","created_at":"2015-09-28T23:02:17Z","updated_at":"2015-09-28T23:02:17Z","body":"Add some safety checks. I haven't verified the shell script works correctly so this is my best guess so far:\r\n\r\nUSAGE=\"prep-tests.sh artifactId-x.y.z https://github.com/x/y.git\r\n# Expect $1 and $2 and reject if $3 exists\r\nif [ ! \"$1\" ] || [ ! \"$2\" ] || [ \"$3\" ]; then\r\n   echo USAGE\r\nfi\r\nif [[ $2 =~ ^https.*\\.git$ ]]; then\r\n   echo USAGE\r\nfi\r\nTAG=$1\r\nREPO=$2\r\n"}}