jesus fucvk fix4es

This commit is contained in:
2025-08-18 22:14:45 -06:00
parent a75d45f6ea
commit 2f4c8748bf
2 changed files with 33 additions and 10 deletions
+12 -1
View File
@@ -1,11 +1,22 @@
#!/bin/bash
# settings
defaultInstallDir="$HOME/esp"
echo -e "\n\nBEGINNING AUTOMATED INSTALL WITH DEFAULTS\n\n"
installDir="$HOME/esp"
# possible package manager shit for later
# sudo apt update
# sudo apt install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
# get the installDir or use default
if [ ! -z $ESPIDFTOOLS_INSTALLDIR ]; then
echo "envvar ESPIDFTOOLS_INSTALLDIR found! setting install dir to $ESPIDFTOOLS_INSTALLDIR"
installDir="$ESPIDFTOOLS_INSTALLDIR"
else
echo "envvar ESPIDFTOOLS_INSTALLDIR not found! using default install dir $defaultInstallDir"
installDir="$defaultInstallDir"
fi
# detect shell and act accordingly
defShell=$(awk -F: -v user="$(whoami)" '$1 == user {print $NF}' /etc/passwd)