From c2768e28a40f6ee73622f3d16b82b34c65abfe46 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Mon, 18 Aug 2025 18:20:47 -0600 Subject: [PATCH] bug fixes for bash --- add-to-export-sh.txt | 2 +- esp-idf-tools-cmd.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/add-to-export-sh.txt b/add-to-export-sh.txt index a0455b3..83939f3 100644 --- a/add-to-export-sh.txt +++ b/add-to-export-sh.txt @@ -37,7 +37,7 @@ done 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/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh index 537156b..88f96c5 100644 --- a/esp-idf-tools-cmd.sh +++ b/esp-idf-tools-cmd.sh @@ -82,13 +82,13 @@ scriptVers=$(cat "$runningDir/version.txt") # make sure version.txt does NOT hav arg=$1 # just rename the argument var for clarity with the functions if [ "$gitJobs" == "default" ]; then - gitCloneCmd="git clone --single-branch --depth 1 --recursive --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" + gitCloneCmd="git clone --single-branch --depth=1 --recursive --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" else - gitCloneCmd="git clone --single-branch --depth 1 --recursive --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" + gitCloneCmd="git clone --single-branch --depth=1 --recursive --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" fi gitUpdateCmd="git -C $idfDir reset --hard; git -C $idfDir clean -df; git -C $idfDir pull $idfDir" # mayhapsnasst? -gitDevKits="git clone --single-branch --depth 1 --jobs $gitJobs --recursive https://github.com/espressif/esp-dev-kits.git $installDir/esp-dev-kits" +gitDevKits="git clone --single-branch --depth=1 --jobs $gitJobs --recursive https://github.com/espressif/esp-dev-kits.git $installDir/esp-dev-kits" gitDevKitsUpdate="git -C $installDir/esp-dev-kits reset --hard; git -C $installDir/esp-dev-kits clean -df; git -C $installDir/esp-dev-kits pull" installCmd="$idfDir/install.sh all" toolsInstallCmd="python $idfDir/tools/idf_tools.py install all"