Add quotes & add logging to loop.
This commit is contained in:
parent
1d1d91de6c
commit
7d7a579cbb
2 changed files with 39 additions and 2 deletions
4
run-loop
4
run-loop
|
@ -13,7 +13,7 @@ function run {
|
|||
do echo "[run-loop] waiting for internet connection."
|
||||
done
|
||||
|
||||
./run-rotate
|
||||
./run-rotate || true
|
||||
|
||||
echo "[run-loop] Waiting $interval from"
|
||||
echo " $(date)"
|
||||
|
@ -24,5 +24,5 @@ function run {
|
|||
|
||||
if [ -t 1 ]
|
||||
then run
|
||||
else run >> output.log
|
||||
else run >> output.log 2>&1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue