projects
/
hdmi-switcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6120ae7
)
Exit properly
author
root
<root@raspberrypi.(none)>
Tue, 14 Apr 2015 17:59:42 +0000
(17:59 +0000)
committer
root
<root@raspberrypi.(none)>
Tue, 14 Apr 2015 17:59:42 +0000
(17:59 +0000)
update.sh
patch
|
blob
|
history
diff --git
a/update.sh
b/update.sh
index
65887ba
..
202707b
100755
(executable)
--- a/
update.sh
+++ b/
update.sh
@@
-1,4
+1,5
@@
#!/bin/bash
+
if [[ ! -e "/dev/sda1" ]]; then
exit 1
fi
@@
-6,7
+7,7
@@
fi
printf "Found USB... "
umount /dev/sda1 > /dev/null 2>&1
-mount /dev/sda1 > /dev/null 2>&1 ||
(printf "Mount failure\n" && exit 1)
+mount /dev/sda1 > /dev/null 2>&1 ||
{ printf "Mount failure\n"; exit 1; }
printf "\t\tMount OK\n"