summaryrefslogtreecommitdiff
path: root/db-update
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 /db-update
parenteefb787983d2608511214bcd682f3d8271bac60c (diff)
Fix some array quoting.
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-update b/db-update
index e3da232..60cc6cd 100755
--- a/db-update
+++ b/db-update
@@ -28,7 +28,7 @@ for repo in "${repos[@]}"; do
if [ ${#pkgs[@]} -gt 0 ] && ! check_repo_permission "${repo}"; then
die "You don't have permission to update packages in ${repo}"
fi
- for pkg in ${pkgs[@]}; do
+ for pkg in "${pkgs[@]}"; do
if [ -h "${pkg}" ]; then
die "Package ${repo}/$(basename ${pkg}) is a symbolic link"
fi
@@ -40,7 +40,7 @@ for repo in "${repos[@]}"; do
fi
done
# This is fucking obnoxious
- #if ! check_splitpkgs ${repo} ${pkgs[@]}; then
+ #if ! check_splitpkgs ${repo} "${pkgs[@]}"; then
# die "Missing split packages for ${repo}"
#fi
else
@@ -51,10 +51,10 @@ done
for repo in "${repos[@]}"; do
msg "Updating [${repo}]..."
any_pkgs=($(getpkgfiles "${STAGING}/${repo}/"*-any${PKGEXT} 2>/dev/null))
- for pkgarch in ${ARCHES[@]}; do
+ for pkgarch in "${ARCHES[@]}"; do
add_pkgs=()
arch_pkgs=($(getpkgfiles "${STAGING}/${repo}/"*-${pkgarch}${PKGEXT} 2>/dev/null))
- for pkg in ${arch_pkgs[@]} ${any_pkgs[@]}; do
+ for pkg in "${arch_pkgs[@]}" "${any_pkgs[@]}"; do
pkgfile="$(basename ${pkg})"
msg2 "${pkgfile} (${pkgarch})"
# any packages might have been moved by the previous run