print an error number even in Stage 2.

This commit is contained in:
okuji committed 2000-09-05 12:02:42 +00:00
1 parent 36854134df
commit 35662478d7
5 files changed
+19 -7

No files matched your search

+2 -2
View File
@@ -200,7 +200,7 @@ else
$grub_shell --batch --device-map=$device_map <<EOF >$log_file
quit
EOF
if grep "Error: " $log_file >/dev/null; then
if grep "Error [0-9]*: " $log_file >/dev/null; then
cat $log_file 1>&2
exit 1
fi
@@ -266,7 +266,7 @@ setup $force_lba --stage2=$grubdir/stage2 $install_drive
quit
EOF
if grep "Error: " $log_file >/dev/null || test $debug = yes; then
if grep "Error [0-9]*: " $log_file >/dev/null || test $debug = yes; then
cat $log_file 1>&2
exit 1
fi