diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-16 22:06:51 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-17 23:59:26 -0600 |
commit | 761b56dcffedc6e484d38c74267810e491add951 (patch) | |
tree | 52a56d5eff8db064d2a5ca0c6dd81e9da0b24935 /db-remove | |
parent | 33b8cb611363102e23972cf3914a03d65cb3cad8 (diff) |
touch up
Diffstat (limited to 'db-remove')
-rwxr-xr-x | db-remove | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |