1.1 --- a/tools/fix.sh Sat Apr 09 19:44:46 2016 +0200
1.2 +++ b/tools/fix.sh Sun Apr 17 18:55:51 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 . "$DIRNAME/config.sh"
1.11 @@ -8,7 +8,7 @@
1.12 . /etc/imip-agent/config.sh
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 cat 1>&2 <<EOF
2.1 --- a/tools/init.sh Sat Apr 09 19:44:46 2016 +0200
2.2 +++ b/tools/init.sh Sun Apr 17 18:55:51 2016 +0200
2.3 @@ -1,6 +1,6 @@
2.4 #!/bin/sh
2.5
2.6 -DIRNAME=`dirname $0`
2.7 +DIRNAME=`dirname "$0"`
2.8
2.9 if [ -e "$DIRNAME/config.sh" ]; then
2.10 . "$DIRNAME/config.sh"
2.11 @@ -8,7 +8,7 @@
2.12 . /etc/imip-agent/config.sh
2.13 fi
2.14
2.15 -PROGNAME=`basename $0`
2.16 +PROGNAME=`basename "$0"`
2.17
2.18 if [ "$1" = "--help" ]; then
2.19 cat 1>&2 <<EOF
3.1 --- a/tools/init_user.sh Sat Apr 09 19:44:46 2016 +0200
3.2 +++ b/tools/init_user.sh Sun Apr 17 18:55:51 2016 +0200
3.3 @@ -1,6 +1,6 @@
3.4 #!/bin/sh
3.5
3.6 -DIRNAME=`dirname $0`
3.7 +DIRNAME=`dirname "$0"`
3.8
3.9 if [ -e "$DIRNAME/config.sh" ]; then
3.10 . "$DIRNAME/config.sh"
3.11 @@ -8,9 +8,9 @@
3.12 . /etc/imip-agent/config.sh
3.13 fi
3.14
3.15 -PROGNAME=`basename $0`
3.16 +PROGNAME=`basename "$0"`
3.17
3.18 -if [ "$1" = "--help" ]; then
3.19 +if [ "$1" = "--help" ] || [ ! "$1" ]; then
3.20 cat 1>&2 <<EOF
3.21 Usage: $PROGNAME <calendar user> [ <stored data directory> [ <published data directory> [ <user> ] ] ]
3.22
4.1 --- a/tools/install.sh Sat Apr 09 19:44:46 2016 +0200
4.2 +++ b/tools/install.sh Sun Apr 17 18:55:51 2016 +0200
4.3 @@ -1,6 +1,6 @@
4.4 #!/bin/sh
4.5
4.6 -DIRNAME=`dirname $0`
4.7 +DIRNAME=`dirname "$0"`
4.8
4.9 if [ -e "$DIRNAME/config.sh" ]; then
4.10 . "$DIRNAME/config.sh"