Browse Source

Quote subcommand on input

Alois Mahdal 10 years ago
parent
commit
a3216edab4
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/bin/saturnin.skel

+ 2
- 2
src/bin/saturnin.skel View File

56
 debug -v FFOO_PATH SATURNIN_LIBEXEC FFOO_CONFIG_PATH
56
 debug -v FFOO_PATH SATURNIN_LIBEXEC FFOO_CONFIG_PATH
57
 debug "\$*='$*'"
57
 debug "\$*='$*'"
58
 
58
 
59
-SATURNIN_SUBCOMMAND=$1
59
+SATURNIN_SUBCOMMAND="$1"
60
 shift
60
 shift
61
 
61
 
62
-case $SATURNIN_SUBCOMMAND in
62
+case "$SATURNIN_SUBCOMMAND" in
63
     help)  print_help; exit $FFOO_EXIT_OK ;;
63
     help)  print_help; exit $FFOO_EXIT_OK ;;
64
     *)
64
     *)
65
         lexpath="$SATURNIN_LIBEXEC/saturnin-$SATURNIN_SUBCOMMAND"
65
         lexpath="$SATURNIN_LIBEXEC/saturnin-$SATURNIN_SUBCOMMAND"