summaryrefslogtreecommitdiff
path: root/db-remove
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 20:53:38 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:00:14 -0500
commit39fbf0d8d3cdc666912c597d41d5b6a70fc0c725 (patch)
tree75431027d99758dbe1f13896c8ff0ef97e14e766 /db-remove
parente7d2dcac7cf857fdccd82bec2bfc2a7d8e6b85c6 (diff)
Fix some array quoting.
Diffstat (limited to 'db-remove')
-rwxr-xr-xdb-remove6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-remove b/db-remove
index 1c25e5c..33d0933 100755
--- a/db-remove
+++ b/db-remove
@@ -10,7 +10,7 @@ fi
repo="$1"
arch="$2"
-pkgbases=(${@:3})
+pkgbases=("${@:3}")
if ! check_repo_permission $repo; then
die "You don't have permission to remove packages from ${repo}"
@@ -27,7 +27,7 @@ for tarch in "${tarches[@]}"; do
done
remove_pkgs=()
-for pkgbase in ${pkgbases[@]}; do
+for pkgbase in "${pkgbases[@]}"; do
msg "Removing $pkgbase from [$repo]..."
path="$(xbs releasepath "$pkgbase" "$repo" "$arch")"
if [ -d "$path" ]; then
@@ -37,7 +37,7 @@ for pkgbase in ${pkgbases[@]}; do
warning "$pkgbase not found in XBS $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+=($pkgbase)
+ remove_pkgs+=("$pkgbase")
fi
done