diff --git a/build-and-deploy.sh b/build-and-deploy.sh index 3ac47b6..730841a 100755 --- a/build-and-deploy.sh +++ b/build-and-deploy.sh @@ -1,2 +1,8 @@ #!/bin/bash +if [ "$#" -ne 1 ]; then + echo "Usage: ./build-and-deploy.sh {target}" + echo "Script needs target hostname or ip as parameter" + exit 1 +fi + ./gradlew clean build jibBuildTar && scp app/build/github-release-bot.tar "$1":~/github-release-bot/