summaryrefslogtreecommitdiffstats
path: root/Cancer/assets/bin/check-truth
blob: 064a7d9759cedfdfe89a6afd45c54df07afa5147 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -euf
HERE=$(dirname $(readlink -f $0))
DB="$HERE/../../db/truth"
read LINE
if (cat $DB;echo $LINE) | $HERE/truth2json - 1>/dev/null ;then
  echo "success" 1>&2
  echo "$LINE"
else
  echo "you fail" 1>&2
fi