42-archive/42sh/42ShellTester/lib/verbs/be_empty.sh
2017-03-24 17:43:33 +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
}