Skip to content

Commit

Permalink
Update read_state.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Raabi91 authored Oct 25, 2020
1 parent 5ff9f28 commit 220ee45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/read_state.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ print_state_read=$(grep -oP '(?<="state": ")[^"]*' print_stats.txt)
print_state="1"
sh /home/pi/moonraker-telegram/scripts/telegram.sh "1"
sleep 10
if [ "$time" > "0" ]; then
if [ "$time" -gt "0" ]; then
sed -i "s/time_pause=.*$/time_pause="0"/g" /home/pi/moonraker-telegram/scripts/time_config.txt
sed -i "s/time_msg=.*$/time_msg="1"/g" /home/pi/moonraker-telegram/scripts/time_config.txt
sh /home/pi/moonraker-telegram/scripts/time_msg.sh &
Expand Down Expand Up @@ -61,4 +61,4 @@ print_state_read=$(grep -oP '(?<="state": ")[^"]*' print_stats.txt)


sleep 1
done
done

0 comments on commit 220ee45

Please sign in to comment.