53-rc2.1
This commit is contained in:
@@ -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}'
|
||||||
|
|||||||
Reference in New Issue
Block a user