fix ESPTARGET

This commit is contained in:
2024-10-15 01:52:04 -06:00
parent 0f21b03a1f
commit de42d5f13d
2 changed files with 9 additions and 10 deletions
+8 -9
View File
@@ -18,25 +18,24 @@ echo "\nEnter TTY Number You'd Like:"
read tty read tty
ttyselect=$devarr[(($tty+1))] ttyselect=$devarr[(($tty+1))]
echo "Set esp target (esp32, esp32s3, esp32c6, esp8266, etc)"
read esp
ESPPORT="$ttyselect" ESPPORT="$ttyselect"
echo "Changing dir to ~/esp"
cd ~/esp
echo "Setting environment variables" echo "Setting environment variables"
echo "Adding Custom bins to PATH:"
export PATH=~/esp/.custom_bin:$PATH
echo "ESPPORT = $ESPPORT" echo "ESPPORT = $ESPPORT"
export ESPPORT export ESPPORT
export ESPBAUD=921600 export ESPBAUD=921600
echo "ESPBAUD = $ESPBAUD" echo "ESPBAUD = $ESPBAUD"
echo "Adding Custom bins to PATH:"
export PATH=~/esp/.custom_bin:$PATH
echo "Set esp target (esp32, esp32s3, esp32c6, esp8266, etc)"
read $esp
export ESPTARGET=$esp export ESPTARGET=$esp
echo "ESPTARGET = $ESPTARGET" echo "ESPTARGET = $ESPTARGET"
echo "Changing dir to ~/esp"
cd ~/esp
echo "All done :3 Enjoy your esp-idf environment" echo "All done :3 Enjoy your esp-idf environment"
############################################### ###############################################
+1 -1
View File
@@ -30,7 +30,7 @@ if [ -d ~/esp/.custom_bin ]; then
rm -rf ~/esp/.custom_bin rm -rf ~/esp/.custom_bin
fi fi
echo "\n\nPlacing and enablig custom bins\n\n" echo "nPlacing and enablig custom bins\n"
cp -r .custom_bin ~/esp cp -r .custom_bin ~/esp
chmod +x ~/esp/.custom_bin/* chmod +x ~/esp/.custom_bin/*