diff --git a/make-new-file.cgi b/make-new-file.cgi index c7f358f..3585304 100755 --- a/make-new-file.cgi +++ b/make-new-file.cgi @@ -8,11 +8,11 @@ date_now=$(date +'%b %d, %Y at %H:%M') if [[ $(cat state.txt) = "ON" ]] then echo "OFF" > state.txt - cat off.html | sed "s/date-n-time-placeholder/$date_now" > /usr/local/apache2/htdocs/index.html + cat off.html | sed "s/date-n-time-placeholder/$date_now/" > /usr/local/apache2/htdocs/index.html ./telegram "✅ The generator is OFF!" else echo "ON" > state.txt - cat on.html | sed "s/date-n-time-placeholder/$date_now" > /usr/local/apache2/htdocs/index.html + cat on.html | sed "s/date-n-time-placeholder/$date_now/" > /usr/local/apache2/htdocs/index.html ./telegram "❌ The generator is on. :(" fi