Skip to content

Commit b4f3103

Browse files
Thu 25 Jul 2019 14:53:05 EDT - fixed installer script
1 parent 4c476c9 commit b4f3103

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

Scripts/helpers/eraser

100644100755
File mode changed.

Scripts/helpers/goodbye

100644100755
File mode changed.

Scripts/helpers/process

100644100755
File mode changed.

Scripts/installer

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo "\n${squid} ${red}(Re)Install ${cyan}xtensa-esp32? ${nc}[y/${white}N${nc}]
1313
echo "\n--------------------------------------------------------------------------"
1414
read -rs -k 1 response
1515
if [[ "$response" = "y" ]]
16-
then
16+
then
1717
clear
1818
echo "\n--------------------------------------------------------------------------"
1919
echo "\n${monkey} ${green}Downloading ${cyan}xtensa-esp32${nc}"
@@ -24,35 +24,45 @@ then
2424
'Linux')
2525
TAR='xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz'
2626
;;
27-
'Darwin')
27+
'Darwin')
2828
TAR='xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz'
2929
;;
3030
*) ;;
31-
esac
31+
esac
3232
[ -e ${TAR} ] && \
3333
rm ${TAR}
34-
34+
3535
curl https://dl.espressif.com/dl/${TAR} \
3636
--output ${TAR} \
3737
--progress-bar
3838
clear
3939
echo "\n--------------------------------------------------------------------------"
4040
echo "\n${fox} ${blue}Extracting ${cyan}xtensa-esp32${nc}"
41-
echo "\n--------------------------------------------------------------------------"
41+
echo "\n--------------------------------------------------------------------------"
4242
cd ~/esp
4343
tar -xzf ~/Downloads/${TAR}
4444
sleep 1
4545
clear
4646
echo "\n--------------------------------------------------------------------------"
4747
echo "\n${squid} ${blue}Preparing ${cyan}environment variables${nc}"
48-
echo "\n--------------------------------------------------------------------------"
48+
echo "\n--------------------------------------------------------------------------"
4949
cd ${SCRIPTS}
50-
source paths
50+
#---------------------------------
51+
# Paths
52+
#---------------------------------
53+
source helpers/paths
54+
55+
#---------------------------------
56+
# Goodbye
57+
#---------------------------------
58+
source helpers/goodbye
5159
else
5260
clear
53-
echo "\n--------------------------------------------------------------------------"
54-
echo "\n${unicorn} ${magenta}Goodbye${nc}"
55-
echo "\n--------------------------------------------------------------------------"
61+
62+
#---------------------------------
63+
# Goodbye
64+
#---------------------------------
65+
source helpers/goodbye
5666
fi
5767
sleep 1
58-
clear
68+
clear

0 commit comments

Comments
 (0)