add update-status-go.sh script

Signed-off-by: Adam Babik <a.babik@designfortress.com>
This commit is contained in:
Adam Babik 2018-05-08 09:58:04 +02:00
parent fd807cff61
commit 2d6cb4fd04
No known key found for this signature in database
GPG Key ID: ED02515A1FC0D1B4
1 changed files with 16 additions and 3 deletions

View File

@ -2,9 +2,22 @@
set -eof pipefail
if [ $# -eq 0 ]
then
echo "Need to supply a status-go version"
usage() {
printf "%s is a tool for upgrading status-go to a given version.\n" "$(basename "$0")"
printf "The given version must be uploaded to Artifactory first.\n\n"
printf "Usage:\n\n"
printf " %s version\n\n" "$(basename "$0")"
printf "Example:\n\n"
printf " %s develop-g12345678\n" "$(basename "$0")"
}
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
usage
exit 1
fi
if [ $# -eq 0 ]; then
echo "Need to provide a status-go version"
exit 1
fi