Commit 19203aad authored by toastal's avatar toastal
Browse files

nix-prefetch-pijul: fixup invalid JSON

accidentally doubly-quoted string output on change + state
parent d2a122eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -123,10 +123,10 @@ cat <<EOF
	"channel": $(json_escape "$channel"),
EOF
if [ -n "$change" ]; then cat <<EOF
	"change": "$(json_escape "$change")",
	"change": $(json_escape "$change"),
EOF
elif [ -n "$state" ]; then cat <<EOF
	"state": "$(json_escape "$state")",
	"state": $(json_escape "$state"),
EOF
fi; cat <<EOF
	"path": "$final_path",