Update 'set-myhostname.sh'

How to write a bash if statement?
This commit is contained in:
The_Lie 2021-03-24 10:31:58 +01:00
parent 9b9edab7d4
commit 7de2f31ee2

View file

@ -3,7 +3,7 @@
IP=$(curl ifconfig.me) IP=$(curl ifconfig.me)
curl_retval=$? curl_retval=$?
if [ $curl_retval -gt 0 ] if [ $curl_retval -gt 0 ]; then
# TODO send warning email to postmaster here # TODO send warning email to postmaster here
exit 1 exit 1
fi fi