From f3657bc5dbf6befb20bd54d19940251846fe147e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Dec 2015 22:20:43 -0500 Subject: register_cmd(): New function --- (limited to 'lib') diff --git a/lib/cmd.sh b/lib/cmd.sh index 208e2fa..866896e 100644 --- a/lib/cmd.sh +++ b/lib/cmd.sh @@ -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= -- cgit v0.9.1