summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-14 22:40:14 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-14 22:40:14 +0200
commit1aec9771b5c2b29ef2427e3aaabd7ef5f58195c5 (patch)
tree458c0efdb846c68c0f4a6c72c1222ab5d509057d
parent7dd7a3a980b0d42295650fe5a4cf45b1eb07fd38 (diff)
downloaddbscripts-1aec9771b5c2b29ef2427e3aaabd7ef5f58195c5.tar.gz
dbscripts-1aec9771b5c2b29ef2427e3aaabd7ef5f58195c5.tar.xz
Don't use hard coded architectures in db-remove
-rwxr-xr-xdb-remove6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-remove b/db-remove
index 2f05c16..3a4a38e 100755
--- a/db-remove
+++ b/db-remove
@@ -39,13 +39,13 @@ fi
cd "$WORKDIR"
if [ "$arch" == "any" ]; then
- arches="i686 x86_64"
+ tarches=(${ARCHES[@]})
else
- arches="$arch"
+ tarches=("$arch")
fi
# copy the db file into our working area
-for tarch in $arches; do
+for tarch in ${tarches[@]}; do
if [ ! -f "$ftppath/$tarch/$reponame$DBEXT" ]; then
die "No database found at '$ftppath/$tarch', nothing more to do"
fi