From 1aec9771b5c2b29ef2427e3aaabd7ef5f58195c5 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 14 Aug 2010 22:40:14 +0200 Subject: Don't use hard coded architectures in db-remove --- db-remove | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'db-remove') 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 -- cgit v1.2.3-24-g4f1b