From: xf0r3m Date: Fri, 18 Aug 2023 08:40:13 +0000 (+0200) Subject: Poprawienie polecenie uzyskującego hash najnowszego commitu X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=ac316725f3751a53b1a62979b391dea70286e6f3;p=immudex-testing.git Poprawienie polecenie uzyskującego hash najnowszego commitu --- diff --git a/tools/library.sh b/tools/library.sh index e78874c..08a5aea 100755 --- a/tools/library.sh +++ b/tools/library.sh @@ -26,7 +26,7 @@ function check_distro_commit() { else git clone -q https://git.morketsmerke.org/git/immudex-testing /tmp/immudex-testing; fi - latestVersion=$(cd /tmp/immudex-testing && git log --pretty=oneline | cut -d " " -f 1); + latestVersion=$(cd /tmp/immudex-testing && git log --pretty=oneline | head -1 | cut -d " " -f 1); if [ "$1" ] && [ "$1" == "--print" ]; then echo "$(cd /tmp/immudex-testing && git log ${localVersion}..${latestVersion})"; fi