more fixes and polish, inching closer to release

This commit is contained in:
2025-05-09 17:55:08 -06:00
parent 6e91b59b4d
commit 6cf5a0a843
3 changed files with 13 additions and 13 deletions
+10 -10
View File
@@ -359,12 +359,12 @@ function handleDownloadInstall() {
gitHashChk=$?
# if gitDataLog file doesnt exist, initialize with header
if [[ ! -f "$gitDataLog" ]]; then
writeToLog "$gitDataLog not found, initializing with header"
echo "date | esp-idf branch | esp-idf-tools version | action" > "$gitDataLog";
if [[ ! -f "$versionData" ]]; then
writeToLog "$versionData not found, initializing with header"
echo "date | esp-idf branch | esp-idf-tools version | action" > "$versionData";
fi
# date | esp-idf branch | esp-idf-tools version | action
# date 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
@@ -418,13 +418,13 @@ function handleEmptyLogs() {
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 $log"
# touch $log
# echo -e "\tReturn status: ${?}\n"
echo "Creating empty file at $versionData"
touch $versionData
echo -e "\tReturn status: ${?}\n"
# echo "Creating empty file at $versionData"
# touch $versionData
# echo -e "\tReturn status: ${?}\n"
}
function handleUninstall() {