From 53016f759fdf1857668a9c9a20b11edd931e3ec6 Mon Sep 17 00:00:00 2001 From: hPrnicessPi3 Date: Fri, 9 May 2025 18:17:26 -0600 Subject: [PATCH] more fixes and polish, inching closer to release --- esp-idf-tools-cmd.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh index 596d596..72d0d1a 100644 --- a/esp-idf-tools-cmd.sh +++ b/esp-idf-tools-cmd.sh @@ -362,11 +362,11 @@ function handleDownloadInstall() { # if gitDataLog file doesnt exist, initialize with header if [[ ! -f "$versionData" ]]; then - writeToLog "$versionData not found, initializing with header" + writeToLog "date&time ddmmYYYY H:M:S (unix seconds) | esp-idf branch | esp-idf-tools version | action" echo "date | esp-idf branch | esp-idf-tools version | action" > "$versionData"; fi - # date ddmmYYYY H:M:S (unix seconds) | esp-idf branch | esp-idf-tools version | action + # date&time ddmmYYYY H:M:S (unix seconds) | esp-idf branch | esp-idf-tools version | action gitDataLog="$(date '+%d/%m/%Y %H:%M:%S %Z (%s)') | $commitHash | $gitBranch | $scriptVers | $action" writeToLog "$gitDataLog" echo "$gitDataLog" >> $versionData @@ -419,14 +419,6 @@ function handleEmptyLogs() { echo "Deleting $versionData" rm -f $versionData echo -e "\tReturn status: ${?}\n" - - # echo "Creating empty file at $log" - # touch $log - # echo -e "\tReturn status: ${?}\n" - - # echo "Creating empty file at $versionData" - # touch $versionData - # echo -e "\tReturn status: ${?}\n" } function handleUninstall() {