]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: use sed to substitute
authorKarel Zak <kzak@redhat.com>
Tue, 29 Nov 2016 13:25:12 +0000 (14:25 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Nov 2016 13:25:23 +0000 (14:25 +0100)
Travis CI:
tools/git-version-gen: 116: tools/git-version-gen: Bad substitution

Signed-off-by: Karel Zak <kzak@redhat.com>
tools/git-version-gen

index e7249f9a2f46bd0b3c25e003f6274544f80fbf02..b287cb794074c60331135f641253d839b1c07d78 100755 (executable)
@@ -113,7 +113,7 @@ elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
 then
 
     # Remove the "g" in git describe's output string, to save a byte.
-    v=${v/-g/-}
+    v=`echo "$v" | sed 's/-g/-/'`;
 
     case $v in
         *-rc*)