commit 076f2fe6fbd2abb8a08d9afcafea09627c81c048
parent df4451e6230c1e3e4a7071b3cabf8eeb3e8a9f34
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Wed, 21 Jun 2023 06:23:30 -0700
Fix ap tag variable expansion
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/local/ap/sys/config/ap/bin/tag b/local/ap/sys/config/ap/bin/tag
@@ -13,7 +13,7 @@ case "$com" in
(add)
tagfile="${1:?No tag file}"
shift
- apc "${@:?name}" | tag "$tagfile" ;;
+ apc "${@:-name}" | tag "$tagfile" ;;
(show) tag -l "$@" ;;
(load) tag -l "$@" | revf | ap truncate ^ ;;
(list) tags list "$tags" ;;