X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/3b9bd321d67bbb34fd4b38d7fc74435c5b75df83..dd4c892b92f1dd0d11e35b5e0861ea5901de16f3:/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