Browse Source

Use more accurate variable name

Alois Mahdal 8 years ago
parent
commit
46c1ab6781
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      src/shellfu/saturnin.sh

+ 6
- 6
src/shellfu/saturnin.sh View File

@@ -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() {