Accept only one argument for load-go

This commit is contained in:
Thomas Goldbrunner 2017-07-27 12:52:38 +02:00
parent cb54391572
commit 826bd61fb8
No known key found for this signature in database
GPG Key ID: 3D1E9133640DA4FB

View File

@ -9,7 +9,10 @@ load-go() {
Run install-gimme and make sure to add ~/bin to your PATH." Run install-gimme and make sure to add ~/bin to your PATH."
return 1 return 1
fi fi
if [[ "$#" == 0 ]] ; then if [[ "$#" > 1 ]] ; then
echo "Usage: load-go GO_VERSION"
return 0
elif [[ "$#" == 0 ]] ; then
eval "$(gimme stable)" eval "$(gimme stable)"
else else
eval "$(gimme ${*})" eval "$(gimme ${*})"