fix ESPTARGET
This commit is contained in:
@@ -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"
|
||||
|
||||
###############################################
|
||||
|
||||
@@ -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/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user