diff options
author | Francois Charette <francois@archlinux.org> | 2009-07-20 19:54:23 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-21 19:09:29 +0200 |
commit | 8ea36dcd83222e960086bbcd114ca538d89db09c (patch) | |
tree | 6aa58bb158f4f6665e75dd03ba50e519b2dd8a65 /db-update | |
parent | 798a2cb73ce68ecb1068be1f5a6e93d54150f0c4 (diff) | |
download | dbscripts-8ea36dcd83222e960086bbcd114ca538d89db09c.tar.gz dbscripts-8ea36dcd83222e960086bbcd114ca538d89db09c.tar.xz |
remove trailing slash from ftppath[_any]
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |