Skip to content

Commit

Permalink
check that install.sh is run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Aug 27, 2024
1 parent ab92ced commit 3651194
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/generic/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
# the main Raspberry Pi centric install scripts expect.
#

if [[ $EUID -ne 0 ]]
then
echo "STOP: Run sudo -i."
exit 1
fi

function error_exit {
echo "STOP: $*"
exit 1
Expand Down

0 comments on commit 3651194

Please sign in to comment.