diff --git a/custom_bin/changebaud.sh b/custom_bin/changebaud.sh index c2dab30..98aac16 100644 --- a/custom_bin/changebaud.sh +++ b/custom_bin/changebaud.sh @@ -1,3 +1,4 @@ +#!/bin/bash function subprocess() { echo -e "\nChanging ESPBAUD\n\t1: 9600\n\t2: 115200\n\t3: 230400\n\t4: 460800\n\t5: 1152000\n\t6: 1500000\n\nEnter Selection: " read baudRate diff --git a/custom_bin/changeesp.sh b/custom_bin/changeesp.sh index c26fef3..7d7fc86 100644 --- a/custom_bin/changeesp.sh +++ b/custom_bin/changeesp.sh @@ -1,3 +1,4 @@ +#!/bin/bash function getTargets() { tmpFile='/tmp/targets.tmp' idf.py --preview --list-targets > "$tmpFile" diff --git a/custom_bin/changeport.sh b/custom_bin/changeport.sh index 5a7b5f2..d7378d1 100644 --- a/custom_bin/changeport.sh +++ b/custom_bin/changeport.sh @@ -1,3 +1,4 @@ +#!/bin/bash function subprocess() { echo -e "\nChanging ESPPORT\n" echo -e "\nChecking for Serial Devices in dmesg\n" @@ -12,7 +13,7 @@ function subprocess() { if [ $COUNTER -gt 0 ]; then echo -e "\nEnter TTY Number You'd Like:" read tty - ttyselect=$devarr[(($tty+1))] + ttyselect=$devarr[$tty+1] else echo -e "\nNo Serial Devices Found, Select one later with 'changeport'\n" fi diff --git a/custom_bin/espinfo b/custom_bin/espinfo index 82f4d28..bb9a28d 100644 --- a/custom_bin/espinfo +++ b/custom_bin/espinfo @@ -1,3 +1,4 @@ +#!/bin/bash echo "esp-idf-tools install dir (\$ESPIDFTOOLS_INSTALLDIR): $ESPIDFTOOLS_INSTALLDIR" echo "esp-idf-tools custom_bin dir: $ESPIDFTOOLS_INSTALLDIR/.custom_bin/" echo "tools:" diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..40b54bf --- /dev/null +++ b/install.sh @@ -0,0 +1,4 @@ +#!/bin/bash +mkdir -p ~/esp +git clone --recursive https://github.com/PrincessPi3/esp-idf-tools.git ~/esp/esp-idf-tools +bash ~/esp/esp-idf-tools/esp-idf-tools-cmd.sh install install \ No newline at end of file diff --git a/todo.txt b/todo.txt index 59aef86..67fd7bc 100644 --- a/todo.txt +++ b/todo.txt @@ -4,4 +4,8 @@ install.sh for curl -s github/install.sh | "$SHELL" installation interactive/install/i seems to not work properly. variable scope? get update properly workan frong option on the other two repos -test da shit proper in bash finafrickingly lmfao \ No newline at end of file +test da shit proper in bash finafrickingly lmfao + changeport/changeport.sh + recheck espinfo + recheck changeesp/changeesp.sh + recheck changebaud/changebaud.sh \ No newline at end of file