urlgrey / hsmm-pi

A set of tools to easily configure the Raspberry Pi to function as a High-Speed Multimedia (HSMM) wireless node.
MIT License
370 stars 92 forks source link

Exit the installer as soon as an error occurs. #100

Closed argilo closed 8 years ago

argilo commented 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.

I had to move the two grep commands inside the following if statements, because grep 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.

tylert commented 8 years ago

:+1:

argilo commented 8 years ago

Tested on a Raspberry Pi 3 and all went well.