From: Christian Schmidt Date: Sun, 29 Aug 2010 06:19:59 +0000 (+0200) Subject: This should fix the error when trying to upload sources. X-Git-Tag: v2.9-beta1~118 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=ae23a606c8e22c64d18484e39f2ce61f23e2f1c1 This should fix the error when trying to upload sources. --- diff --git a/make.sh b/make.sh index 4e72c00839..41ede31f41 100755 --- a/make.sh +++ b/make.sh @@ -1018,11 +1018,12 @@ uploadsrc) beautify message FAIL exit 1 fi + URL_SOURCE=$(grep URL_SOURCE lfs/Config | awk '{ print $3 }') - REMOTE_FILES=$(echo "ls -1" | sftp -C ${IPFIRE_USER}@${URL_SOURCE}) + REMOTE_FILES=$(echo "ls -1 --ignore=toolchains" | sftp -C ${IPFIRE_USER}@${URL_SOURCE}) cd $BASEDIR/cache/ - for file in $(ls -1); do + for file in $(ls -1 --ignore=toolchains); do grep -q "$file" <<<$REMOTE_FILES && continue NEW_FILES="$NEW_FILES $file" done