Accept only one argument for load-go
This commit is contained in:
parent
cb54391572
commit
826bd61fb8
@ -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 ${*})"
|
||||||
|
Loading…
Reference in New Issue
Block a user