Browse Source

Use canonical names for globals

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

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

@@ -55,17 +55,17 @@ esac done
55 55
 debug -v FFOO_PATH SATURNIN_LIBEXEC FFOO_CONFIG_PATH
56 56
 debug "\$@=$@"
57 57
 
58
-scmd=$1
58
+SATURNIN_SUBCOMMAND=$1
59 59
 shift
60 60
 
61
-case $scmd in
61
+case $SATURNIN_SUBCOMMAND in
62 62
     help)  print_help; exit $FFOO_EXIT_OK ;;
63 63
     *)
64
-        lexpath="$SATURNIN_LIBEXEC/saturnin-$scmd"
64
+        lexpath="$SATURNIN_LIBEXEC/saturnin-$SATURNIN_SUBCOMMAND"
65 65
         debug -v lexpath
66 66
         debug "\$@='$@'"
67 67
         test -x "$lexpath" && exec "$lexpath" "$@"
68
-        warn "invalid sub-command: $scmd"
68
+        warn "invalid sub-command: $SATURNIN_SUBCOMMAND"
69 69
         print_help; exit $FFOO_EXIT_USAGE
70 70
         ;;
71 71
 esac