From 5e446b84a08342a01137eb2f041344f338e52d65 Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Sat, 17 Feb 2024 20:57:01 +0100 Subject: [PATCH] Improve build-and-deploy script --- build-and-deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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/