From de42d5f13dee3189f3959472bc20095f1cc67e09 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Tue, 15 Oct 2024 01:52:04 -0600 Subject: [PATCH] fix ESPTARGET --- add-to-export-sh.txt | 17 ++++++++--------- reinstall-esp-idf.sh | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/add-to-export-sh.txt b/add-to-export-sh.txt index db220dd..ede549a 100644 --- a/add-to-export-sh.txt +++ b/add-to-export-sh.txt @@ -18,25 +18,24 @@ echo "\nEnter TTY Number You'd Like:" read tty ttyselect=$devarr[(($tty+1))] +echo "Set esp target (esp32, esp32s3, esp32c6, esp8266, etc)" +read esp + ESPPORT="$ttyselect" -echo "Changing dir to ~/esp" -cd ~/esp echo "Setting environment variables" +echo "Adding Custom bins to PATH:" +export PATH=~/esp/.custom_bin:$PATH echo "ESPPORT = $ESPPORT" export ESPPORT export ESPBAUD=921600 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 echo "ESPTARGET = $ESPTARGET" +echo "Changing dir to ~/esp" +cd ~/esp + echo "All done :3 Enjoy your esp-idf environment" ############################################### diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index 8d5489d..dc15246 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -30,7 +30,7 @@ if [ -d ~/esp/.custom_bin ]; then rm -rf ~/esp/.custom_bin fi -echo "\n\nPlacing and enablig custom bins\n\n" +echo "nPlacing and enablig custom bins\n" cp -r .custom_bin ~/esp chmod +x ~/esp/.custom_bin/*