commit | e85764a0332c1360a1212d65bb828ba35b452608 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Thu Jun 04 17:08:27 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Thu Jun 04 17:10:24 2015 +0900 |
tree | ef06e89366b957d3b768d23b68010075809c9317 | |
parent | d34c0e119ee18108d0da853ff94a409c1383fa20 [diff] [blame] |
Do not die when no argument is specified to m2n
diff --git a/m2n b/m2n index 80692ba..57be48a 100755 --- a/m2n +++ b/m2n
@@ -19,6 +19,7 @@ EOF exit 1 ;; + --goma) if [ ! -e $HOME/goma/goma_ctl.py ]; then echo "$HOME/goma/goma_ctl.py should exist to use goma" @@ -27,9 +28,12 @@ $HOME/goma/goma_ctl.py ensure_start goma_flag=--goma_dir=$HOME/goma ;; + *) - target=$1 - shift + if [ x"$1" != x"" ]; then + target=$1 + shift + fi ;; esac