From: Andrea Zagli Date: Mon, 14 Nov 2022 12:19:32 +0000 (+0100) Subject: Significato parametri riga comando script aggiornamento sha in file nix. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;p=nix%2Fpkgs Significato parametri riga comando script aggiornamento sha in file nix. --- 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}')