Skip to content

Commit

Permalink
fix alternative subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
niaow committed Nov 12, 2017
1 parent 836d4e8 commit bdd3782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alternative.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ reconfigure() {
update "$1"
}

if [ "$1" -eq "update" ]; then
if [ "$1" == "update" ]; then
shift
update "$@"
elif [ "$1" -eq "reconfigure" ]; then
elif [ "$1" == "reconfigure" ]; then
shift
reconfigure "$@"
else
Expand Down

0 comments on commit bdd3782

Please sign in to comment.