File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ echo -e '░░ ░▒ ░ ░ ░ ░░ ░░ ░ ▒░ ▒ ░░░
1010echo -e ' ░ ░ ░ ░ ░ ░ ▒kooscode@github ░ '
1111echo -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 ;;
2121
2222# Set platform
2323DEV_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.'
3838else
3939 echo -e " You do not appear to be using a supported"
You can’t perform that action at this time.
0 commit comments