summaryrefslogtreecommitdiffstats
path: root/lenovobios_firstflash
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-20 23:23:00 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-11-20 23:23:00 (EST)
commit862987344403417057deb453dd73887799cb0fcb (patch)
tree03fbf880815c073e9fd7a478508c2340742f406a /lenovobios_firstflash
parenta87f27c40d01f14f139c5bb89df14da8681f4b61 (diff)
downloadlibreboot-862987344403417057deb453dd73887799cb0fcb.zip
libreboot-862987344403417057deb453dd73887799cb0fcb.tar.gz
libreboot-862987344403417057deb453dd73887799cb0fcb.tar.bz2
scripts (error handling): Replace exit with exit 1
This is so that scripts using these in the future can more easily debug if errors occur.
Diffstat (limited to 'lenovobios_firstflash')
-rwxr-xr-xlenovobios_firstflash6
1 files changed, 3 insertions, 3 deletions
diff --git a/lenovobios_firstflash b/lenovobios_firstflash
index 4db50b7..4b25c13 100755
--- a/lenovobios_firstflash
+++ b/lenovobios_firstflash
@@ -31,11 +31,11 @@ if (( $# != 1 )); then
echo "Usage: ./lenovobios_firstflash yourrom.rom"
echo "usage: ./lenovobios_firstflash path/to/yourrom.rom"
echo "You need to specify exactly 1 file"
- exit
+ exit 1
fi
if [ ! -f $1 ]; then
echo "File not found!"
- exit
+ exit 1
fi
# needed for first flashing, otherwise machine will be bricked
@@ -44,7 +44,7 @@ fi
} || { # catch
echo "BUCTS issue (most likely not compiled). Make sure BUC.TS is 1, or else you will brick your machine."
echo "ABORTING so as to protect against bricking the machine."
- exit
+ exit 1
}
# run both. one will fail (and be harmless), the other will succeed.