~singpolyma/dhall-ruby

a124cc761bb39d4e57fdf908e0f855dc8f5d5b21 — Stephen Paul Weber 3 years ago 8ff10ae
Forgot to add this file
1 files changed, 7 insertions(+), 0 deletions(-)

A test/normalization/dhall-hash
A test/normalization/dhall-hash => test/normalization/dhall-hash +7 -0
@@ 0,0 1,7 @@
#!/bin/sh

out="$(echo "$1" | sed -e's/\.dhallb$/.hash/')"
dhall decode < "$1" | dhall hash > "$out" 2>/dev/null
if [ $(wc -c < "$out") -eq 0 ]; then
	rm -f "$out"
fi