stickygrickus

This commit is contained in:
2024-11-12 07:02:48 -07:00
parent 6a1c8913da
commit cf789e96f4
2 changed files with 7 additions and 10 deletions
+6 -9
View File
@@ -1,5 +1,6 @@
#!/bin/bash
set -e # for testan, die on error
# set -e # for testan, die on error
startTime=$(date '+%s')
# redo these notes:
# testing:
@@ -168,9 +169,11 @@ function handleLogoutAllUsers() {
}
function handleStart() {
startTime=$(date '+%s')
if [ -z $sleepMins ]; then
sleepMins="disabled"
fi
writeToLog "$(date '+%d/%m/%Y %H:%M:%S %Z (%s)')\nvars:\n\tmyUser: $myUser\n\tscriptVers: $scriptVers\n\tversionData: $versionData\n\tlog: $log\n\tsleepMins: $sleepMins\n\tsleepSecs: $sleepSecs\n\tinstallDir: $installDir\n\tgitJobs: $gitJobs\n\tgitBranch: $gitBranch\n\tgitCmd: $gitCmd\n\trunningDir: $runningDir\n\tidfDir: $idfDir\n\tespressifLocation: $espressifLocation\n\tcustomBinLocation: $customBinLocation\n\tcustomBinFrom: $customBinFrom\n\tinstallCmd: $installCmd\n\ttoolsInstallCmd: $toolsInstallCmd"
writeToLog "$(date '+%d/%m/%Y %H:%M:%S %Z (%s)')\nvars:\n\tmyUser: $myUser\n\tscriptVers: $scriptVers\n\tversionData: $versionData\n\tlog: $log\n\tsleepMins: $sleepMins\n\tinstallDir: $installDir\n\tgitJobs: $gitJobs\n\tgitBranch: $gitBranch\n\tgitCmd: $gitCmd\n\trunningDir: $runningDir\n\tidfDir: $idfDir\n\tespressifLocation: $espressifLocation\n\tcustomBinLocation: $customBinLocation\n\tcustomBinFrom: $customBinFrom\n\tinstallCmd: $installCmd\n\ttoolsInstallCmd: $toolsInstallCmd"
writeToLog " === $(date '+%d/%m/%Y %H:%M:%S %Z (%s)'): new ${action} ==="
writeToLog "Version: ${scriptVers}"
@@ -238,8 +241,6 @@ elif [ "$arg" == "nologout" ]; then
toolsInstallCmd="python $idfDir/tools/idf_tools.py install all"
sleepMins=0
handleStart
handleSetupEnvironment
handleCustomBins
@@ -251,8 +252,6 @@ elif [ "$arg" == "nologout" ]; then
elif [ "$arg" == "retool" ]; then
action="RETOOL"
sleepMins=0
handleStart
handleCustomBins
handleExport
@@ -268,8 +267,6 @@ else # full install with warn, sleep, and reboot
toolsInstallCmd="python $idfDir/tools/idf_tools.py install all"
sleepMins=0
handleStart
handleLogoutAllUsers
handleSetupEnvironment
+1 -1
View File
@@ -1 +1 @@
60-dev.2
60-dev.3