diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-08 20:53:38 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-08 21:00:14 -0500 |
commit | 39fbf0d8d3cdc666912c597d41d5b6a70fc0c725 (patch) | |
tree | 75431027d99758dbe1f13896c8ff0ef97e14e766 /db-remove | |
parent | e7d2dcac7cf857fdccd82bec2bfc2a7d8e6b85c6 (diff) |
Fix some array quoting.
Diffstat (limited to 'db-remove')
-rwxr-xr-x | db-remove | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |