Update 'set-myhostname.sh'
How to write a bash if statement?
This commit is contained in:
parent
9b9edab7d4
commit
7de2f31ee2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue