diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index 0494106..697d60b 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -9,7 +9,7 @@ else fi rcFile=$HOME/.zshrc # shell rc file -# gitJobs=5 # number of jobs to download from github with +gitJobs=3 # number of jobs to download from github with gitJobs=default # default for no --jobs x arg, integar for a number of jobs rebootMins=3 # minutes of warning before reboot @@ -38,9 +38,9 @@ arg=$1 # just rename the argument var for clarity with the functions # commands if [ "$gitJobs" == "default" ]; then - gitCloneCmd="git clone --recursive --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" + gitCloneCmd="git clone --single-branch --recursive --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" else - gitCloneCmd="git clone --recursive --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" + gitCloneCmd="git clone --single-branch --recursive --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir" fi # gitCloneCmd="git clone --recursive --single-branch --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir"