From 8ea36dcd83222e960086bbcd114ca538d89db09c Mon Sep 17 00:00:00 2001 From: Francois Charette Date: Mon, 20 Jul 2009 19:54:23 +0200 Subject: remove trailing slash from ftppath[_any] Signed-off-by: Aaron Griffin --- db-update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'db-update') 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 -- cgit v1.2.3-24-g4f1b