summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xftpdir-cleanup7
1 files changed, 5 insertions, 2 deletions
diff --git a/ftpdir-cleanup b/ftpdir-cleanup
index 98f6f7c..18e26f2 100755
--- a/ftpdir-cleanup
+++ b/ftpdir-cleanup
@@ -14,9 +14,12 @@ getpkgname() {
echo ${tmp%-*-*}
}
+reponame=$1
+arch=$2
+
FTPBASEDIR="/home/ftp"
-FTPDIR=${FTPBASEDIR}/${1}/os/${2}
-DBFILE=${FTPDIR}/${1}.db.tar.gz
+FTPDIR=${FTPBASEDIR}/$reponame/os/$arch
+DBFILE=${FTPDIR}/$reponame.db.tar.gz
MISSINGFILES=""
DELETEFILES=""