mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Accept only one argument for load-go
This commit is contained in:
parent
cb54391572
commit
826bd61fb8
1 changed files with 4 additions and 1 deletions
|
|
@ -9,7 +9,10 @@ load-go() {
|
|||
Run install-gimme and make sure to add ~/bin to your PATH."
|
||||
return 1
|
||||
fi
|
||||
if [[ "$#" == 0 ]] ; then
|
||||
if [[ "$#" > 1 ]] ; then
|
||||
echo "Usage: load-go GO_VERSION"
|
||||
return 0
|
||||
elif [[ "$#" == 0 ]] ; then
|
||||
eval "$(gimme stable)"
|
||||
else
|
||||
eval "$(gimme ${*})"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue