From 6f5a26ad5ca502665e57b7958121695ac6384ada Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sat, 9 Nov 2024 05:34:48 -0700 Subject: [PATCH] 42-live --- cron-reinstall-esp-idf.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cron-reinstall-esp-idf.sh b/cron-reinstall-esp-idf.sh index 91a259d..d7309f2 100644 --- a/cron-reinstall-esp-idf.sh +++ b/cron-reinstall-esp-idf.sh @@ -2,15 +2,14 @@ startTime=$(date '+%s') # testing: -# rm ~/esp/install.log -# bash ~/esp/esp-install-custom/cron-reinstall-esp-idf.sh +# rm ~/esp/install.log; rm ~/esp/version-data.txt; ls ~/esp; bash ~/esp/esp-install-custom/cron-reinstall-esp-idf.sh # tail -f -n 50 ~/esp/install.log # cron: # crontab -e # 0 8 * * * bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh -cronVers=40-live # version of this script +cronVers=42-live # version of this script sleepMins=3 # minutes of warning to wait for user to log out log=$HOME/esp/install.log @@ -23,8 +22,8 @@ function return_status() { } function write_to_log() { - echo -e "$1\n" - echo -e "$1\n" >> $log + echo -e "$1" + echo -e "$1" >> $log } function logout_all_users() {