mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
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
This commit is contained in:
10
make.sh
10
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
|
||||
|
||||
Reference in New Issue
Block a user