diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-14 22:40:14 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-14 22:40:14 +0200 |
commit | 1aec9771b5c2b29ef2427e3aaabd7ef5f58195c5 (patch) | |
tree | 458c0efdb846c68c0f4a6c72c1222ab5d509057d | |
parent | 7dd7a3a980b0d42295650fe5a4cf45b1eb07fd38 (diff) | |
download | dbscripts-1aec9771b5c2b29ef2427e3aaabd7ef5f58195c5.tar.gz dbscripts-1aec9771b5c2b29ef2427e3aaabd7ef5f58195c5.tar.xz |
Don't use hard coded architectures in db-remove
-rwxr-xr-x | db-remove | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |