diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-18 13:29:51 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-18 13:29:51 -0400 |
commit | ba575a4e64be157eeae1028ed86b29cb0042f41b (patch) | |
tree | 209bbcf659128654c5436f58116eec86eccad4b2 | |
parent | 46510e1fc48f37ce76c2bf5f19f885bba8d5d098 (diff) |
More quoting fixes
-rwxr-xr-x | any-to-ours | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/any-to-ours b/any-to-ours index 6afc7b0..c203a6e 100755 --- a/any-to-ours +++ b/any-to-ours @@ -21,7 +21,7 @@ trap 'trap_exit "$(gettext "An unknown error has occurred. Exiting...")"' ERR BASEARCH='x86_64' # Traverse all Arch repos -for _repo in ${ARCHREPOS[@]}; do +for _repo in "${ARCHREPOS[@]}"; do msg "Processing ${_repo}..." # Find 'any' packages @@ -35,7 +35,7 @@ for _repo in ${ARCHREPOS[@]}; do continue fi - for _arch in ${OURARCHES[@]}; do + for _arch in "${OURARCHES[@]}"; do msg2 "Syncing ${_arch}..." # Sync 'any' only and extract the synced packages @@ -44,8 +44,8 @@ for _repo in ${ARCHREPOS[@]}; do --include='*-any.pkg.tar.?z' \ --include='*-any.pkg.tar.?z.sig' \ --exclude='*' \ - ${FTP_BASE}/${_repo}/os/${BASEARCH}/ \ - ${FTP_BASE}/${_repo}/os/${_arch}/ 2>&1 | \ + "${FTP_BASE}/${_repo}/os/${BASEARCH}/" \ + "${FTP_BASE}/${_repo}/os/${_arch}/" 2>&1 | \ grep 'any\.pkg\.tar\..z$' | \ cut -d ' ' -f 1 )) @@ -58,11 +58,10 @@ for _repo in ${ARCHREPOS[@]}; do msg2 "Adding to db..." - pushd ${FTP_BASE}/${_repo}/os/${_arch}/ >/dev/null + pushd "${FTP_BASE}/${_repo}/os/${_arch}/" >/dev/null # Add the packages to the db - repo-add ${_repo}${DBEXT} \ - ${SYNCED[@]} + repo-add "${_repo}${DBEXT}" "${SYNCED[@]}" popd >/dev/null |