summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/mkefidisk.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index d6bc965137..55f72b0f54 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -173,7 +173,11 @@ fi
173 173
174if [ ! -w "$DEVICE" ]; then 174if [ ! -w "$DEVICE" ]; then
175 usage 175 usage
176 die "Device $DEVICE does not exist or is not writable" 176 if [ ! -e "${DEVICE}" ] ; then
177 die "Device $DEVICE cannot be found"
178 else
179 die "Device $DEVICE is not writable (need to run under sudo?)"
180 fi
177fi 181fi
178 182
179if [ ! -e "$HDDIMG" ]; then 183if [ ! -e "$HDDIMG" ]; then