Skip to content

Commit

Permalink
scripts: add usage to update_golang_version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed May 14, 2020
1 parent f2210ce commit 7f9ee5e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/update_golang_version.sh
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 7f9ee5e

Please sign in to comment.