./check_zpools: test: argument expected

At this string of the script:
if [ ${exit_text} ]
insert the double quotes in this way:
if [ “${exit_text}” ]

That’s useful if you have more then 2 zpools.