mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +03:00
scripts: add usage to update_golang_version.sh
This commit is contained in:
committed by
Mahmood Ali
parent
262c5933c6
commit
3dfe57247f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user