1.1 --- a/tools/init_user.sh Sun Apr 10 02:34:00 2016 +0200
1.2 +++ b/tools/init_user.sh Sun Apr 17 23:47:19 2016 +0200
1.3 @@ -1,6 +1,6 @@
1.4 #!/bin/sh
1.5
1.6 -DIRNAME=`dirname $0`
1.7 +DIRNAME=`dirname "$0"`
1.8
1.9 if [ -e "$DIRNAME/config.sh" ]; then
1.10 CONFIG="$DIRNAME/config.sh"
1.11 @@ -10,9 +10,9 @@
1.12 . "$CONFIG"
1.13 fi
1.14
1.15 -PROGNAME=`basename $0`
1.16 +PROGNAME=`basename "$0"`
1.17
1.18 -if [ "$1" = "--help" ]; then
1.19 +if [ "$1" = "--help" ] || [ ! "$1" ]; then
1.20 cat 1>&2 <<EOF
1.21 Usage: $PROGNAME <calendar user>
1.22