File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ echo -e '░░ ░▒ ░ ░ ░ ░░ ░░ ░ ▒░ ▒ ░░░
10
10
echo -e ' ░ ░ ░ ░ ░ ░ ▒kooscode@github ░ '
11
11
echo -e ' ░ ░ ░ ░ ░ ░ ░ ░ \n'
12
12
13
- while [[ " $# " -gt 0 ] ]; do
13
+ while [ " $# " -gt 0 ]; do
14
14
case $1 in
15
15
# wifi|--wifi|-w) wifi=1 ;;
16
16
expert|--expert|-e) expert=1 ;;
21
21
22
22
# Set platform
23
23
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
26
26
export PLATFORM=OMEGA2
27
27
echo ' !! ONION OMEGA2+ DETECTED !!\n'
28
- elif [[ grep -q " Raspberry Pi" " $DEV_FILE " ]] ; then
28
+ elif grep -q " Raspberry Pi" " $DEV_FILE " ; then
29
29
export PLATFORM=PI
30
30
echo ' --------------------------------------------'
31
31
echo -e ' \n INSTALLING PI UPDATES AND REQUIREMENTS\n'
32
32
echo ' --------------------------------------------'
33
33
sudo apt -y update
34
34
sudo apt -y install build-essential wiringpi git cmake
35
35
fi
36
- elif [[ $expert ] ]; then
36
+ elif [ $expert ]; then
37
37
echo -e ' Expert mode enabled.'
38
38
else
39
39
echo -e " You do not appear to be using a supported"
You can’t perform that action at this time.
0 commit comments