Commit 17d92d1fe485746570636846b39680557cfe2a09

Thomas de Grivel 2023-01-23T07:58:53

fix git version

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/lib/shpkg.subr b/lib/shpkg.subr
index bbf8148..aa83298 100644
--- a/lib/shpkg.subr
+++ b/lib/shpkg.subr
@@ -132,9 +132,7 @@ shpkg_version () {
         SHPKG_REPO_HASH="$(git -C "${SHPKG_REPO_SRC_DIR}" show-ref --head HEAD | cut -d ' ' -f 1 | head -n 1)"
         SHPKG_REPO_HEAD="$(git -C "${SHPKG_REPO_SRC_DIR}" show-ref | grep "${SHPKG_REPO_HASH}" | grep ' refs/heads/' | sed -e 's,^.* refs/heads/,,')"
         echo "${SHPKG_REPO_HEAD}-${SHPKG_REPO_HASH}"
-        return 0
     fi
-    return 1
 }
 
 # Building from sources