nix-prefetch-git: change the default output to JSON

As discussed on the mailing list. The nix output was short-lived so it's
probably okay to change it.
This commit is contained in:
zimbatm 2016-02-29 22:47:16 +00:00
parent 03d1e0fb8f
commit 90de261f33

View File

@ -325,9 +325,9 @@ print_results() {
fi
if test -n "$hash"; then
echo "{"
echo " url = \"$url\";"
echo " rev = \"$fullRev\";"
echo " $hashType = \"$hash\";"
echo " \"url\": \"$url\","
echo " \"rev\": \"$fullRev\","
echo " \"$hashType\": \"$hash\""
echo "}"
fi
}