add update-status-go.sh script
Signed-off-by: Adam Babik <a.babik@designfortress.com>
This commit is contained in:
parent
fd807cff61
commit
2d6cb4fd04
|
@ -2,9 +2,22 @@
|
||||||
|
|
||||||
set -eof pipefail
|
set -eof pipefail
|
||||||
|
|
||||||
if [ $# -eq 0 ]
|
usage() {
|
||||||
then
|
printf "%s is a tool for upgrading status-go to a given version.\n" "$(basename "$0")"
|
||||||
echo "Need to supply a status-go version"
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue