diff --git a/make.sh b/make.sh
index 84e87b7ff5b1f7371a70e5ba5857002b683a1500..2c5f2e916609576c763cf33ef85a7eef8eb2896f 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 libglib2.0-dev
 
 # Automaticka detekce posledni releasnute verze
-SINVERSION=${SINVERSION:-$(curl -L -s https://github.com/sylabs/singularity/releases/latest | grep -Po "\/v\K[^\"]+" | head -1 | grep -Po "\d+\.\d+\.\d+")}
+SINVERSION=${SINVERSION:-$(curl -L -s https://github.com/sylabs/singularity/releases/latest | grep -Po "\/v\K\d+\.\d+\.\d+" | head -1)}
 GOVERSION=${GOVERSION:-$(curl -s https://go.dev/VERSION?m=text)}
 
 # Priprava adresare pro hotove balicky a zapamatovani cesty