]> saetta.ns0.it Git - nix/pkgs/commitdiff
Significato parametri riga comando script aggiornamento sha in file nix. master
authorAndrea Zagli <andrea.zagli@yahoo.com>
Mon, 14 Nov 2022 12:19:32 +0000 (13:19 +0100)
committerAndrea Zagli <andrea.zagli@yahoo.com>
Mon, 14 Nov 2022 12:19:32 +0000 (13:19 +0100)
update_rev.sh

index ebe6459ef0f5e879ce1e6423029da034c16bb9fb..1604edd36c43dd0800f001486f8ca8ca7873bb16 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# $1 = nome del file .nix
+# $2 = branch
+
 url=$(awk '/url/ {gsub("\"", "", $3); gsub(";", "", $3); print $3}' $1)
 sha=$(git ls-remote $url refs/heads/$2 | awk '{print $1}')