summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_install.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c
index f87db59..7277179 100644
--- a/src/logic/slbt_exec_install.c
+++ b/src/logic/slbt_exec_install.c
@@ -599,6 +599,7 @@ int slbt_exec_install(
char * slash;
char * optsh;
char * script;
+ char * shtool;
struct slbt_exec_ctx * actx;
struct argv_meta * meta;
struct argv_entry * entry;
@@ -634,6 +635,19 @@ int slbt_exec_install(
optsh = *iargv++;
script = *iargv;
}
+ } else {
+ slash = strrchr(iargv[0],'/');
+ shtool = slash ? ++slash : iargv[0];
+ shtool = strcmp(shtool,"shtool") ? 0 : shtool;
+
+ if (shtool && iargv[1] && !strcmp(iargv[1],"install")) {
+ iargv++;
+ } else if (shtool) {
+ return slbt_install_usage(
+ fdout,
+ dctx->program,
+ 0,optv,0);
+ }
}
/* missing arguments? */