scripts: add usage to update_golang_version.sh

This commit is contained in:
Michael Schurter
2020-05-14 14:27:42 -07:00
committed by Mahmood Ali
parent 262c5933c6
commit 3dfe57247f

View File

@@ -1,5 +1,12 @@
#!/bin/sh
if [ -z "$1" ]; then
echo "usage: $0 GO_VERSION"
echo ""
echo "For example: $0 1.14.3"
exit 1
fi
golang_version="$1"
current_version=$(grep -o -e 'golang:[.0-9]*' .circleci/config.yml | head -n1 | cut -d: -f2)