mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03: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:
parent
03d1e0fb8f
commit
90de261f33
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user