From 862987344403417057deb453dd73887799cb0fcb Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Fri, 21 Nov 2014 04:23:00 +0000 Subject: 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. --- flash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flash') diff --git a/flash b/flash index 71106358..91d4b879 100755 --- a/flash +++ b/flash @@ -29,11 +29,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 # boardmismatch=force is for people upgrading from libreboot 5th release, where the new ROM's are "ThinkPad X60 / X60s / X60t" -- cgit v1.2.3-70-g09d2