File: search.sh

package info (click to toggle)
golang-github-tinylib-msgp 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 476 kB
  • sloc: makefile: 42; sh: 10
file content (12 lines) | stat: -rwxr-xr-x 172 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#! /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