diff --git a/test.sh b/test.sh index a635752..7b52377 100755 --- a/test.sh +++ b/test.sh @@ -28,6 +28,6 @@ CHECK_HOST(){ echo $1 echo ${noheader} -if [[ "${noheader}" != *"${1}"* ]]; then +if [[ "${noheader}," != *"${1}"* ]] && [[ ",${noheader}" != *"${1}"* ]] && [[ "${noheader}," != *"${2}"* ]] && [[ ",${noheader}" != *"${2}"* ]]; then echo 'not found' fi \ No newline at end of file