/home/$YOU/.zen/A_Station_ON

This commit is contained in:
fred 2021-08-06 00:15:58 +02:00
parent 704febd7d3
commit 6499e31241
1 changed files with 3 additions and 3 deletions

View File

@ -76,10 +76,10 @@ dayofthemonth=$(date +%d)
weeknumber=$(date +%V)
# WAKEUP TIME
if [[ ! -f /tmp/A_Station_ON ]]; then
echo "onheure=$heure; onminute=$minute; ontimebar=$timebar" > /tmp/A_Station_ON
if [[ ! -f /home/$YOU/.zen/A_Station_ON ]]; then
echo "onheure=$heure; onminute=$minute; ontimebar=$timebar" > /home/$YOU/.zen/A_Station_ON
else
source /tmp/A_Station_ON
source /home/$YOU/.zen/A_Station_ON
old=$ontimebar
new=$timebar
# feeding variables by using read and splitting with IFS