summaryrefslogtreecommitdiff
path: root/repo-restore-to-normal
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:27:07 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:27:07 -0500
commit9d9116bd23720cf6c5b27aa39e5cc4c71de1fb26 (patch)
tree2a48919051eeec5122097e66f572fcec4a92ca20 /repo-restore-to-normal
parenteefb787983d2608511214bcd682f3d8271bac60c (diff)
Fix some array quoting.
Diffstat (limited to 'repo-restore-to-normal')
-rwxr-xr-xrepo-restore-to-normal6
1 files changed, 3 insertions, 3 deletions
diff --git a/repo-restore-to-normal b/repo-restore-to-normal
index 3fe4816..063aacf 100755
--- a/repo-restore-to-normal
+++ b/repo-restore-to-normal
@@ -12,7 +12,7 @@ PKGREPOS=(community)
# sed "s/^\(.\+-[^-]\+-[^-]\+\)-[^-]\+$/\1/"))
# Traverse all repos
-for _repo in ${PKGREPOS[@]}; do
+for _repo in "${PKGREPOS[@]}"; do
msg "Restoring [${_repo}]"
# Find all pkgnames on this repo's abs
@@ -27,7 +27,7 @@ for _repo in ${PKGREPOS[@]}; do
>/dev/null 2>&1
# also cleanup package functions
- for _pkg in ${pkgname[@]}; do
+ for _pkg in "${pkgname[@]}"; do
unset package_${pkg} >/dev/null 2>&1
# this fills the on_abs array
echo ${_pkg}-${pkgver}-${pkgrel}
@@ -49,7 +49,7 @@ for _repo in ${PKGREPOS[@]}; do
msg2 "Restoring the following packages:"
# plain "$(echo ${restore[@]} | tr ' ' "\n")"
- for _pkg in ${on_abs[@]}; do
+ for _pkg in "${on_abs[@]}"; do
find ${CLEANUP_DESTDIR} -name "${_pkg}*" -exec cp -v '{}' ${STAGING}/${_repo} \;
done