summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xupdate-archlinux32-package8
1 files changed, 4 insertions, 4 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package
index 92afa57..7d6da07 100755
--- a/update-archlinux32-package
+++ b/update-archlinux32-package
@@ -217,7 +217,7 @@ case ${update_path} in
ssh arch32-test '
cd "'"${pkgname}"'"
cat >> PKGBUILD
- echo "arch+=(i686 pentium4)" >> PKGBUILD
+ echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD
makepkg -g
' < "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" \
| sed -n "$(
@@ -256,7 +256,7 @@ case ${update_path} in
| ssh arch32-test '
cd "'"${pkgname}"'"
cat > PKGBUILD
- echo "arch+=(i686 pentium4)" >> PKGBUILD
+ echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD
makepkg --verifysource
'; then
>&2 echo 'something went wrong'
@@ -288,7 +288,7 @@ case ${update_path} in
sums=$(
ssh arch32-test '
cd "'"${pkgname}"'"
- echo "arch+=(i686 pentium4)" >> PKGBUILD
+ echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD
makepkg -g
' \
| sed '
@@ -308,7 +308,7 @@ case ${update_path} in
if ! ssh arch32-test '
cd "'"${pkgname}"'"
cat > PKGBUILD
- echo "arch+=(i686 pentium4)" >> PKGBUILD
+ echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD
makepkg --verifysource
' < "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"; then
>&2 echo 'something went wrong'