From 85f209e61db1dc6f8bd76048ddb4da6257ed9591 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 7 Sep 2022 07:33:44 +0200 Subject: [PATCH] update_rev: parametrizzati file e branch. --- update_rev.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_rev.sh b/update_rev.sh index f212c8c..dea66c3 100755 --- a/update_rev.sh +++ b/update_rev.sh @@ -1,4 +1,4 @@ #!/bin/bash -url=$(awk '/url/ {gsub("\"", "", $3); gsub(";", "", $3); print $3}' libzakutils.nix) -git ls-remote $url refs/heads/develop | awk '{print $1}' +url=$(awk '/url/ {gsub("\"", "", $3); gsub(";", "", $3); print $3}' $1) +git ls-remote $url refs/heads/$2 | awk '{print $1}' -- 2.49.0