From a60a7059dcbe6bdc9f68fe93a9f94cb5b8e766ce Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Fri, 25 Apr 2025 06:17:49 -0600 Subject: [PATCH] cleaned up --- reinstall-esp-idf.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index c55845a..526533f 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -2,7 +2,12 @@ # set -e # uncomment for die on error startTime=$(date '+%s') # to time the (re)install time for the logs -gitBranch=master # branch from github +if [ -z "$2" ]; then + gitBranch=master # branch from github +else + gitBranch=$2 +fi + rcFile=$HOME/.zshrc # shell rc file # gitJobs=5 # number of jobs to download from github with gitJobs=default # default for no --jobs x arg, integar for a number of jobs