commit d214ba38007a25e79307441a9b79ccdfafe92536
parent 3a1cd0392a770b9a8fac5049e6b6d8ccd53ec930
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Thu, 4 May 2023 18:08:15 -0700
Don't needlessly run apc commands in ap
The 'commands' command was sent to aps for practically no reason
(due to historical reasons). This is now fixed.
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/local/bin/bin/ap b/local/bin/bin/ap
@@ -33,12 +33,9 @@ test $# -lt 1 && {
usage: ap command [arg ...]' 1>&2
exit 1
}
-com="$(commands | fgrep -x "$1")" || {
- echo "$1: Command not found" 1>&2
- exit 1
-}
-shift
+com="$1"
+shift
if test "$com" = 'commands'; then
exec commands "$@"
elif test -x "$config"/bin/"$com"; then