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