File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ set -eo pipefail
66SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
77cd " $SCRIPT_DIR " || exit 1
88
9+ shaper=$( mktemp)
10+ sed -e ' 1,/```mdtest-input shaper.zed/d' -e ' /```/,$d' ../docs/integrations/zeek/shaping-zeek-ndjson.md > " $shaper "
11+
912DATA=" ../zed-sample-data"
1013ln -sfn zeek-default " $DATA /zeek"
1114ln -sfn zeek-ndjson " $DATA /ndjson"
8487 zed=${ZED_QUERIES[$n]}
8588 echo -n " |\` zq\` |\` $zed \` |$INPUT |$OUTPUT |" | tee -a " $MD "
8689 case $INPUT in
87- ndjson ) zq_flags=" -i json -I ../zeek/ shaper.zed " zed=" | $zed " ;;
90+ ndjson ) zq_flags=" -i json -I $ shaper" zed=" | $zed " ;;
8891 zng-uncompressed ) zq_flags=" -i zng" ;;
8992 * ) zq_flags=" -i $INPUT " ;;
9093 esac
114117
115118 echo | tee -a " $MD "
116119done
120+
121+ rm -f " $shaper "
You can’t perform that action at this time.
0 commit comments