more fixes and polish, inching closer to release
This commit is contained in:
+10
-10
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user