Skip to content

Commit 326a05e

Browse files
author
kooscode
committed
install script bug
1 parent d98f957 commit 326a05e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo -e '░░ ░▒ ░ ░ ░ ░░ ░░ ░ ▒░ ▒ ░░░
1010
echo -e ' ░ ░ ░ ░ ░ ░ ▒kooscode@github ░ '
1111
echo -e ' ░ ░ ░ ░ ░ ░ ░ ░ \n'
1212

13-
while [[ "$#" -gt 0 ]]; do
13+
while [ "$#" -gt 0 ]; do
1414
case $1 in
1515
#wifi|--wifi|-w) wifi=1 ;;
1616
expert|--expert|-e) expert=1 ;;
@@ -21,19 +21,19 @@ done
2121

2222
# Set platform
2323
DEV_FILE=/sys/firmware/devicetree/base/model
24-
if [[ -e $DEV_FILE ]]; then
25-
if [[grep -q "Onion Omega2+" "$DEV_FILE"]]; then
24+
if [ -e $DEV_FILE ]; then
25+
if grep -q "Onion Omega2+" "$DEV_FILE"; then
2626
export PLATFORM=OMEGA2
2727
echo ' !! ONION OMEGA2+ DETECTED !!\n'
28-
elif [[grep -q "Raspberry Pi" "$DEV_FILE"]]; then
28+
elif grep -q "Raspberry Pi" "$DEV_FILE"; then
2929
export PLATFORM=PI
3030
echo '--------------------------------------------'
3131
echo -e '\n INSTALLING PI UPDATES AND REQUIREMENTS\n'
3232
echo '--------------------------------------------'
3333
sudo apt -y update
3434
sudo apt -y install build-essential wiringpi git cmake
3535
fi
36-
elif [[ $expert ]]; then
36+
elif [ $expert ]; then
3737
echo -e 'Expert mode enabled.'
3838
else
3939
echo -e "You do not appear to be using a supported"

0 commit comments

Comments
 (0)