11 lines
123 B
Bash
Executable File
11 lines
123 B
Bash
Executable File
#!/bin/sh
|
|
|
|
result=$1
|
|
|
|
if grep -qi error: "$result" ; then
|
|
echo "found string 'error' in $result"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|