summaryrefslogtreecommitdiff
path: root/repo-restore-to-normal
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 /repo-restore-to-normal
parente7d2dcac7cf857fdccd82bec2bfc2a7d8e6b85c6 (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