diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-04 17:08:27 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-04 17:10:24 +0900 |
commit | e85764a0332c1360a1212d65bb828ba35b452608 (patch) | |
tree | ef06e89366b957d3b768d23b68010075809c9317 /m2n | |
parent | d34c0e119ee18108d0da853ff94a409c1383fa20 (diff) | |
download | kati-e85764a0332c1360a1212d65bb828ba35b452608.tar.gz |
Do not die when no argument is specified to m2n
Diffstat (limited to 'm2n')
-rwxr-xr-x | m2n | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -19,6 +19,7 @@ Usage: 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 @@ EOF $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 |