capture error code

This commit is contained in:
rhelmer%mozilla.com 2006-08-01 21:56:05 +00:00
parent 61b2387829
commit 88b46fae6c

View File

@ -131,8 +131,9 @@ do
continue
fi
check_update "$source_build_platform" "downloads/$source_file" "downloads/$target_file"
if [ "$?" != "0" ]; then
echo "FAIL: check_update returned non-zero exit code: $?" |tee /dev/stderr
$err = $?
if [ "$err" != "0" ]; then
echo "FAIL: check_update returned non-zero exit code: $err" |tee /dev/stderr
continue
fi
done