Kaydet (Commit) 6a0ba09f authored tarafından Michael Stahl's avatar Michael Stahl

download: check that "mv" succeeds too

As reported on list, may fail with weird wget config files...

Change-Id: I258809c3488181dcc7584f5349930287dfacb7b8
üst 639c1043
......@@ -150,9 +150,17 @@ downloaditem()
mv $2 ${i}_broken
else
mv $2 ..
if [ $? -ne 0 ]; then
echo cannot mv $2 to destination 2>&1 | tee -a $logfile
failed="$failed $2"
fi
fi
else
mv $2 ..
if [ $? -ne 0 ]; then
echo cannot mv $2 to destination 2>&1 | tee -a $logfile
failed="$failed $2"
fi
fi
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment