summaryrefslogtreecommitdiffstats
path: root/flash
diff options
context:
space:
mode:
Diffstat (limited to 'flash')
-rwxr-xr-xflash4
1 files changed, 4 insertions, 0 deletions
diff --git a/flash b/flash
index 4dad73a..0d5f762 100755
--- a/flash
+++ b/flash
@@ -27,6 +27,10 @@ if (( $# != 1 )); then
echo "You need to specify exactly 1 file"
exit
fi
+if [ ! -f $1 ]; then
+ echo "File not found!"
+ exit
+fi
# boardmismatch=force is for people upgrading from libreboot 5th release, where the new ROM's are "ThinkPad X60 / X60s / X60t"
# and the old ones are "ThinkPad X60 / X60s" and flashrom complains otherwise