aboutsummaryrefslogtreecommitdiff
path: root/m2n
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-04 17:08:27 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-04 17:10:24 +0900
commite85764a0332c1360a1212d65bb828ba35b452608 (patch)
treeef06e89366b957d3b768d23b68010075809c9317 /m2n
parentd34c0e119ee18108d0da853ff94a409c1383fa20 (diff)
downloadkati-e85764a0332c1360a1212d65bb828ba35b452608.tar.gz
Do not die when no argument is specified to m2n
Diffstat (limited to 'm2n')
-rwxr-xr-xm2n8
1 files changed, 6 insertions, 2 deletions
diff --git a/m2n b/m2n
index 80692ba..57be48a 100755
--- a/m2n
+++ b/m2n
@@ -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