From 4dc94a19b07edc21dbcfbce5835b750beacfcb23 Mon Sep 17 00:00:00 2001 From: Tristan Date: Wed, 13 Mar 2019 14:43:03 +0100 Subject: [PATCH] Some characters have to be escaped --- evocheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index bf0a72c..3c3fe60 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -951,11 +951,11 @@ if [ `uname -s` == "OpenBSD" ]; then if [ "$IS_REBOOTMAIL" = 1 ]; then if [ -f /etc/rc.local ]; then - grep -qE '^date | mail -s "boot/reboot of' /etc/rc.local || echo 'IS_REBOOTMAIL FAILED!' + grep -qE '^date \| mail -s "boot/reboot of' /etc/rc.local || echo 'IS_REBOOTMAIL FAILED!' else echo 'IS_REBOOTMAIL FAILED!' if [[ "$VERBOSE" == 1 ]]; then - echo "Make sure /etc/rc.local exist and 'date | mail -s \"boot/reboot of $hostname' is present!" + echo "Make sure /etc/rc.local exist and 'date | mail -s \"boot/reboot of \$hostname' is present!" fi fi fi