Explorar el Código

Use more accurate variable name

Alois Mahdal hace 8 años
padre
commit
46c1ab6781
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6
    6
      src/shellfu/saturnin.sh

+ 6
- 6
src/shellfu/saturnin.sh Ver fichero

@@ -55,17 +55,17 @@ saturnin__runsc() {
55 55
     #
56 56
     # Run subcommand $SATURNIN_SUBCOMMAND
57 57
     #
58
-    local lexpath
59
-    lexpath+="$SATURNIN_LIBEXEC/"
60
-    lexpath+="$SATURNIN_LIBEXEC_PREFIX$SATURNIN_SUBCOMMAND"
61
-    debug -v lexpath
58
+    local binpath   # path to subconnand's binary
59
+    binpath+="$SATURNIN_LIBEXEC/"
60
+    binpath+="$SATURNIN_LIBEXEC_PREFIX$SATURNIN_SUBCOMMAND"
61
+    debug -v binpath
62 62
     debug "\$*='$*'"
63
-    test -x "$lexpath" || {
63
+    test -x "$binpath" || {
64 64
         warn "invalid sub-command: $SATURNIN_SUBCOMMAND"
65 65
         saturnin__help
66 66
         return "$SHELLFU_EXIT_USAGE"
67 67
     }
68
-    "$lexpath" "$@"
68
+    "$binpath" "$@"
69 69
 }
70 70
 
71 71
 saturnin__wraphook() {