Skip to content

Commit

Permalink
Fixes bash syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
vpetersson committed Jun 10, 2017
1 parent b37cbdd commit a75b069
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail

#Check if script is being run as root
if [ "$(id -u)" != "0" ]; then
Expand All @@ -9,7 +10,8 @@ fi
if [ ! $? = 0 ]; then
exit 1
else
apt-get install git whiptail #Installs packages which might be missing
#Installs packages which might be missing
apt-get install -y git whiptail

# enable I2C
raspi-config nonint do_i2c 0
Expand Down

0 comments on commit a75b069

Please sign in to comment.