jesus fucvk fix4es
This commit is contained in:
+12
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user