This commit is contained in:
2024-11-09 07:33:44 -07:00
parent eff470c6bf
commit efb69408e0
+11 -6
View File
@@ -1,14 +1,17 @@
#!/bin/bash #!/bin/bash
# testing: # testing:
# bash ~/esp/esp-install-custom/cron-reinstall-esp-idf.sh test # bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh test
# tail -f -n 50 ~/esp/install.log # tail -f -n 50 $HOME/esp/install.log
# ls $HOME/esp
# cat $HOME/esp/install.log
# cat $HOME/esp/version-data.txt
# cron: # cron:
# crontab -e # crontab -e
# 0 8 * * * bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh # 0 8 * * * bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh
startTime=$(date '+%s') startTime=$(date '+%s')
cronVers=53-rc2 # version of this script cronVers=53-rc2.1 # version of this script
log=$HOME/esp/install.log log=$HOME/esp/install.log
function return_status() { function return_status() {
@@ -44,10 +47,12 @@ if [ "$1" == "test" ]; then
toolsInstallCmd="echo python $idfDir/tools/idf_tools.py install all" toolsInstallCmd="echo python $idfDir/tools/idf_tools.py install all"
sleepMins=0 sleepMins=0
# rm -f $HOME/esp/install.log; rm -f $HOME/esp/install.log; ls $HOME/esp; bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh # ls $HOME/esp; echo "install.log"; Cat $HOME/esp/install.log; echo "version-data.txt"; cat $HOME/esp/version-data.txt
rm -f $HOME/esp/install.log # rm -f $HOME/esp/install.log; rm -f $HOME/esp/install.log; ls $HOME/esp;
rm -f $HOME/version-data.txt # bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh
ls $HOME/esp ls $HOME/esp
rm -f $HOME/esp/install.log
rm -f $HOME/esp/version-data.txt
function logout_all_users() { function logout_all_users() {
who | awk '{print $1}' who | awk '{print $1}'