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