mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
Merge pull request #13584 from zimbatm/nix-prefetch-git-json
nix-prefetch-git: change the default output to JSON
This commit is contained in:
commit
0d2e437fc9
@ -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