FS #3289 fix from Dan McGee <dpmcgee@gmail.com>
This commit is contained in:
parent
b308f06a3a
commit
ff23064fa2
1 changed files with 7 additions and 3 deletions
|
@ -568,9 +568,13 @@ for netfile in ${source[@]}; do
|
|||
fi
|
||||
msg " Downloading $file"
|
||||
$FTPAGENT "$netfile" 2>&1
|
||||
if [ ! -f "$file" ]; then
|
||||
error "Failed to download $file"
|
||||
msg "Aborting..."
|
||||
# fix flyspray bug #3289
|
||||
ftpret=$?
|
||||
if [ $ftpret -gt 0 ]; then
|
||||
error "Failure while downloading $file"
|
||||
msg "Aborting..."
|
||||
rm "$file"
|
||||
exit 1
|
||||
exit 1
|
||||
fi
|
||||
if [ "`id -u`" = "0" -a "$INFAKEROOT" != "1" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue