summaryrefslogtreecommitdiffstats
path: root/ftpdir-cleanup
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-05-06 00:41:47 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2008-05-06 00:41:47 +0200
commitfeac9cc83037b01d7e7904433086e57056fe0bc4 (patch)
tree5d3497b8a16b65545d0a41dcd4e4fb08a44db743 /ftpdir-cleanup
parent79e7365c6afdd0010cc5b64d63099c673320fe6e (diff)
downloaddbscripts-feac9cc83037b01d7e7904433086e57056fe0bc4.tar.gz
dbscripts-feac9cc83037b01d7e7904433086e57056fe0bc4.tar.xz
Make the params slightly more clear
Real super minor Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'ftpdir-cleanup')
-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=""