summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
authorFrancois Charette <francois@archlinux.org>2009-07-20 19:54:23 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-21 10:09:29 -0700
commit8ea36dcd83222e960086bbcd114ca538d89db09c (patch)
tree6aa58bb158f4f6665e75dd03ba50e519b2dd8a65 /db-update
parent798a2cb73ce68ecb1068be1f5a6e93d54150f0c4 (diff)
remove trailing slash from ftppath[_any]
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-update b/db-update
index 1c6739a..338fb5b 100755
--- a/db-update
+++ b/db-update
@@ -106,8 +106,8 @@ fi
for current_arch in ${ARCHES[@]}; do
- ftppath="$FTP_BASE/$reponame/os/$current_arch/"
- ftppath_any="$FTP_BASE/$reponame/os/any/"
+ ftppath="$FTP_BASE/$reponame/os/$current_arch"
+ ftppath_any="$FTP_BASE/$reponame/os/any"
if [ ! -d "$ftppath" ]; then
echo "FTP path for this repo ($reponame) is missing"
@@ -197,7 +197,7 @@ for current_arch in ${ARCHES[@]}; do
if [ $(/bin/ls "$WORKDIR/build/"*-$current_arch$PKGEXT 2>/dev/null | wc -l) != 0 ]; then
echo "Copying new files to '$ftppath'"
for f in "$WORKDIR/build/"*-$current_arch$PKGEXT; do
- if ! /bin/cp "$f" "$ftppath"; then
+ if ! /bin/cp "$f" "$ftppath/"; then
die "error: failure while copying files to $ftppath"
fi
done