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