From fd1b8061602a7f947a467c91cbda21287a32cf1f Mon Sep 17 00:00:00 2001 From: ms Date: Sat, 15 Sep 2007 13:27:54 +0000 Subject: [PATCH] Ein Fix fuer das Hochladen der Dateien auf unseren Source-FTP-Server. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@890 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- make.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/make.sh b/make.sh index f2dfe6c9a6..1c53f80272 100755 --- a/make.sh +++ b/make.sh @@ -909,13 +909,13 @@ uploadsrc) PWD=`pwd` cd $BASEDIR/cache/ echo -e "Uploading cache to ftp server:" - ncftpls -u $FTP_CACHE_USER -p $FTP_CACHE_PASS ftp://$FTP_CACHE_URL$FTP_CACHE_PATH/ > /tmp/ftplist + ncftpls -u $FTP_CACHE_USER -p $FTP_CACHE_PASS ftp://$FTP_CACHE_URL/$FTP_CACHE_PATH/ > /tmp/ftplist for i in *; do - if [ "$i" == "toolchains" ]; then continue; fi - grep -q $i /tmp/ftplist + if [ "$(basename $i)" == "toolchains" ]; then continue; fi + grep -q $(basename $i) /tmp/ftplist if [ "$?" -ne "0" ]; then - echo -ne "$i" - ncftpput -u $FTP_CACHE_USER -p $FTP_CACHE_PASS $FTP_CACHE_URL $FTP_CACHE_PATH/ $i + echo -ne "$(basename $i)" + ncftpput -u $FTP_CACHE_USER -p $FTP_CACHE_PASS $FTP_CACHE_URL $FTP_CACHE_PATH/ $(basename $i) if [ "$?" -ne "0" ]; then beautify message FAIL fi -- 2.39.2