diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-12-06 22:20:43 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-12-06 22:20:43 (EST) |
commit | f3657bc5dbf6befb20bd54d19940251846fe147e (patch) | |
tree | 1669a400fe170351ea03c5e74fa9c0f927324945 /lib | |
parent | 42f5c3de2feaf43447ab439e8ca53bab03327b42 (diff) |
register_cmd(): New function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmd.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -25,10 +25,20 @@ use output use locale CMDS='@cmds@' +cmds=' ' running_cmd= running_cmd_clean= +register_cmd() +{ + local cmd="${1}" + shift 1 + + cmds="${cmds}${cmd} " + return 0 +} + load_cmds() { local cmd= |