diff --git a/test.sh b/test.sh index cd9f1cd..d06168c 100755 --- a/test.sh +++ b/test.sh @@ -27,7 +27,7 @@ CHECK_HOST(){ } -if [ CHECK_HOST 10.5.10.53 = "false" ]; then +if [ CHECK_HOST ${1}= "false" ]; then echo 'host down' else echo 'host up'