From bf0563c23df1be0bc3aa0ab6a6d50a7222ad3a85 Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 14 Jun 2021 01:31:43 -0500 Subject: [PATCH] fix apkv del also update examples in help text to use $0 --- bin/apkv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/apkv b/bin/apkv index bf89590..4f6900e 100755 --- a/bin/apkv +++ b/bin/apkv @@ -25,9 +25,9 @@ However, due to implementation specifics, any string starting with those forms will work; that functionality is unspecified and is not guaranteed. For example, the following are equivalent: - apkv add syslinux .virt - apkv a syslinux virt - apkv abcdefg syslinux .virt + $0 add syslinux .virt + $0 a syslinux virt + $0 abcdefg syslinux .virt " } @@ -109,7 +109,7 @@ case $method in # $(echo) construct is to use word splitting to normalize whitespace add) currpkgs="$(echo $currpkgs) $pkgs";; del) # XXX: there's probably a more efficient way to do this - for x in "$pkgs"; do + for x in $pkgs; do currpkgs=$(echo "$currpkgs" | grep -vFiw $x) done;; esac -- 2.47.0