ipld-eth-server/vendor/github.com/tinylib/msgp/_generated/search.sh
2018-09-11 16:30:29 -05:00

13 lines
172 B
Bash
Executable File

#! /bin/sh
FILE=$(echo $1 | sed s/.go/_gen.go/)
echo "searching" $FILE "for" $2
grep -q $2 $FILE
if [ $? -eq 0 ]
then
echo "OK"
else
echo "whoops!"
exit 1
fi