From 7de2f31ee2b2a20122f49247f8c9e8b48dcd6652 Mon Sep 17 00:00:00 2001 From: The_Lie Date: Wed, 24 Mar 2021 10:31:58 +0100 Subject: [PATCH] Update 'set-myhostname.sh' How to write a bash if statement? --- set-myhostname.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-myhostname.sh b/set-myhostname.sh index ba9429f..314f18f 100644 --- a/set-myhostname.sh +++ b/set-myhostname.sh @@ -3,7 +3,7 @@ IP=$(curl ifconfig.me) curl_retval=$? -if [ $curl_retval -gt 0 ] +if [ $curl_retval -gt 0 ]; then # TODO send warning email to postmaster here exit 1 fi