commit a9300568e805d113a992efc3321a4ae28c3ce948
parent c63f8decb1b455cd4e6942e6fea314eb90631aad
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Sun, 27 Apr 2025 00:27:40 +0200
fix version detection of folders
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
@@ -19,12 +19,13 @@ if [ -d ".git" ]; then
else
dirnm=${PWD##*/}
dirnm=${dirnm:-/}
- detected_version=${dirn#*-}
- if [ $detected_version = $dirnm ]; then
+ detected_version=${dirnm#*-}
+ if [ "$detected_version" = "$dirnm" ]; then
detected_version="unknown"
fi
fi
+
echo "Configuring ${pkg_name}-${detected_version}"
# Save arguments