X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/c0b3d4b6bc9c9c8b2a88bc1035e877714d81ebf1..bf0563c23df1be0bc3aa0ab6a6d50a7222ad3a85:/bin/apkv 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