summaryrefslogtreecommitdiff
path: root/testing2x
diff options
context:
space:
mode:
Diffstat (limited to 'testing2x')
-rwxr-xr-xtesting2x22
1 files changed, 11 insertions, 11 deletions
diff --git a/testing2x b/testing2x
index b6828fc..37c4395 100755
--- a/testing2x
+++ b/testing2x
@@ -11,28 +11,28 @@ fi
# Lock everything to reduce possibility of interfering task between the different repo-updates
script_lock
for repo in 'core' 'extra' 'testing'; do
- for pkgarch in ${ARCHES[@]}; do
- repo_lock ${repo} ${pkgarch} || exit 1
+ for pkgarch in "${ARCHES[@]}"; do
+ repo_lock "${repo}" "${pkgarch}" || exit 1
done
done
declare -A pkgs
-for pkgbase in $*; do
+for pkgbase in "$@"; do
if [ ! -d "${WORKDIR}/${pkgbase}" ]; then
/usr/bin/svn export -q "${SVNREPO}/${pkgbase}/repos" "${WORKDIR}/${pkgbase}" >/dev/null
found_source=false
- for pkgarch in ${ARCHES[@]} 'any'; do
+ for pkgarch in "${ARCHES[@]}" 'any'; do
svnrepo_from="${WORKDIR}/${pkgbase}/testing-${pkgarch}"
if [ -r "${svnrepo_from}/PKGBUILD" ]; then
found_source=true
break
fi
done
- ${found_source} || die "${pkgbase} not found in [testing]"
+ "${found_source}" || die "${pkgbase} not found in [testing]"
found_target=false
- for pkgarch in ${ARCHES[@]} 'any'; do
+ for pkgarch in "${ARCHES[@]}" 'any'; do
for repo in 'core' 'extra'; do
svnrepo_to="${WORKDIR}/${pkgbase}/${repo}-${pkgarch}"
if [ -r "${svnrepo_to}/PKGBUILD" ]; then
@@ -42,16 +42,16 @@ for pkgbase in $*; do
fi
done
done
- ${found_target} || die "${pkgbase} neither found in [core] nor [extra]"
+ "${found_target}" || die "${pkgbase} neither found in [core] nor [extra]"
fi
done
-for pkgarch in ${ARCHES[@]}; do
- repo_unlock 'testing' ${pkgarch}
+for pkgarch in "${ARCHES[@]}"; do
+ repo_unlock 'testing' "${pkgarch}"
done
for repo in 'core' 'extra'; do
- for pkgarch in ${ARCHES[@]}; do
- repo_unlock ${repo} ${pkgarch}
+ for pkgarch in "${ARCHES[@]}"; do
+ repo_unlock "${repo}" "${pkgarch}"
done
if [ -n "${pkgs[${repo}]}" ]; then
"$(dirname "$(readlink -e "$0")")/db-move" 'testing' "${repo}" ${pkgs[${repo}]}