summaryrefslogtreecommitdiff
path: root/db-remove
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-16 22:06:51 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-17 23:59:26 -0600
commit761b56dcffedc6e484d38c74267810e491add951 (patch)
tree52a56d5eff8db064d2a5ca0c6dd81e9da0b24935 /db-remove
parent33b8cb611363102e23972cf3914a03d65cb3cad8 (diff)
touch up
Diffstat (limited to 'db-remove')
-rwxr-xr-xdb-remove10
1 files changed, 5 insertions, 5 deletions
diff --git a/db-remove b/db-remove
index e632c47..ccab5ea 100755
--- a/db-remove
+++ b/db-remove
@@ -17,12 +17,12 @@ if ! check_repo_permission $repo; then
fi
if [ "$arch" == "any" ]; then
- tarches=(${ARCHES[@]})
+ tarches=("${ARCHES[@]}")
else
tarches=("$arch")
fi
-for tarch in ${tarches[@]}; do
+for tarch in "${tarches[@]}"; do
repo_lock $repo $tarch || exit 1
done
@@ -37,11 +37,11 @@ for pkgbase in ${pkgbases[@]}; do
warning "$pkgbase not found in $repo-$arch"
warning "Removing only $pkgbase from the repo"
warning "If it was a split package you have to remove the others yourself!"
- remove_pkgs[${#remove_pkgs[*]}]=$pkgbase
+ remove_pkgs+=($pkgbase)
fi
done
-for tarch in ${tarches[@]}; do
- arch_repo_remove "${repo}" "${tarch}" ${remove_pkgs[@]}
+for tarch in "${tarches[@]}"; do
+ arch_repo_remove "${repo}" "${tarch}" "${remove_pkgs[@]}"
repo_unlock $repo $tarch
done