42-archive/42sh/42shelltest-tmp/lib/verbs/be_empty.sh
2017-03-18 01:30:28 +01:00

16 lines
215 B
Bash

#!/bin/bash
# /*
# Test emptiness of output
# RESPONSE -> actual output (stdout or stderr)
# */
run_verb_be_empty()
{
if [ "$(awk '{print}' "${RESPONSE}")" == "" ]
then
return 0
else
return 1
fi
}