# HG changeset patch # User Paul Boddie # Date 1460912151 -7200 # Node ID 1940446f32ef063b787a5296484e7de86fd34d81 # Parent 5aab37be2f7ba83445f0aafffd817df58c8bfccc Quoted the program name when getting its directory and basename. Show the help message when no arguments are given to init_user.sh. diff -r 5aab37be2f7b -r 1940446f32ef tools/fix.sh --- a/tools/fix.sh Sat Apr 09 19:44:46 2016 +0200 +++ b/tools/fix.sh Sun Apr 17 18:55:51 2016 +0200 @@ -1,6 +1,6 @@ #!/bin/sh -DIRNAME=`dirname $0` +DIRNAME=`dirname "$0"` if [ -e "$DIRNAME/config.sh" ]; then . "$DIRNAME/config.sh" @@ -8,7 +8,7 @@ . /etc/imip-agent/config.sh fi -PROGNAME=`basename $0` +PROGNAME=`basename "$0"` if [ "$1" = "--help" ]; then cat 1>&2 <&2 <&2 < [ [ [ ] ] ] diff -r 5aab37be2f7b -r 1940446f32ef tools/install.sh --- a/tools/install.sh Sat Apr 09 19:44:46 2016 +0200 +++ b/tools/install.sh Sun Apr 17 18:55:51 2016 +0200 @@ -1,6 +1,6 @@ #!/bin/sh -DIRNAME=`dirname $0` +DIRNAME=`dirname "$0"` if [ -e "$DIRNAME/config.sh" ]; then . "$DIRNAME/config.sh"