Closed argilo closed 8 years ago
Fixes https://github.com/urlgrey/hsmm-pi/issues/97.
For review @urlgrey @tylert @syelnmh @cbegg50
I've added set -e to the installer to make sure it exits as soon as an error occurs. That will prevent install problems from going unnoticed.
set -e
I had to move the two grep commands inside the following if statements, because grep returns an error status if nothing is found.
grep
if
For good measure, I changed the installer's exit status to 1 if it is executed as root.
:+1:
Tested on a Raspberry Pi 3 and all went well.
Fixes https://github.com/urlgrey/hsmm-pi/issues/97.
For review @urlgrey @tylert @syelnmh @cbegg50
I've added
set -e
to the installer to make sure it exits as soon as an error occurs. That will prevent install problems from going unnoticed.I had to move the two
grep
commands inside the followingif
statements, becausegrep
returns an error status if nothing is found.For good measure, I changed the installer's exit status to 1 if it is executed as root.