debian: initial import for the debian package
[drupal-init-tools.git] / drin.in
diff --git a/drin.in b/drin.in
index 4ba7583..b3abfae 100644 (file)
--- a/drin.in
+++ b/drin.in
@@ -18,7 +18,7 @@
 
 set -e
 
-PROGNAME=$(basename $0)
+PROGNAME=$(basename "$0")
 LIBEXEC="@libexec@"
 
 usage() {
@@ -35,7 +35,7 @@ EOF
 
   for subcommand in ${LIBEXEC}/*.sh;
   do
-    echo "  $(basename $subcommand .sh)"
+    echo "  $(basename "$subcommand" .sh)"
   done
 }
 
@@ -59,7 +59,7 @@ do
         exit 1
       else
         shift
-        exec $subcommand "$@"
+        exec "$subcommand" "$@"
       fi
       ;;
   esac