From 8a1c35790838e0906351a57f7460bf351ea475b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20Vondru=C5=A1ka?= <dextor@civ.zcu.cz>
Date: Wed, 18 May 2022 07:50:43 +0000
Subject: [PATCH] Uprava make.sh aby spravne zjistoval verze kvuli nejake zmene
 na githubu

---
 make.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/make.sh b/make.sh
index 78342a4..ceba6df 100755
--- a/make.sh
+++ b/make.sh
@@ -37,7 +37,7 @@ apt update -qqq
 apt install -yqqq build-essential dpkg-dev debhelper build-essential libssl-dev uuid-dev libseccomp-dev pkg-config squashfs-tools cryptsetup wget curl git devscripts dh-golang
 
 # Automaticka detekce posledni releasnute verze
-SINVERSION=${SINVERSION:-$(curl -s https://github.com/sylabs/singularity/releases/latest | grep -Po "\/v\K[^\"]+")}
+SINVERSION=${SINVERSION:-$(curl -L -s https://github.com/sylabs/singularity/releases/latest | grep -Po "\/v\K[^\"]+" | head -1 | grep -Po "\d+\.\d+\.\d+"}
 GOVERSION=${GOVERSION:-$(curl -s https://go.dev/VERSION?m=text)}
 
 # Priprava adresare pro hotove balicky a zapamatovani cesty
-- 
GitLab