1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

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
}