From 89c32998b35304c54c0d8c4256c8d13187ba2f52 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 14 Nov 2022 13:19:32 +0100 Subject: [PATCH] Significato parametri riga comando script aggiornamento sha in file nix. --- update_rev.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update_rev.sh b/update_rev.sh index ebe6459..1604edd 100755 --- a/update_rev.sh +++ b/update_rev.sh @@ -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}') -- 2.49.0