]> granicus.if.org Git - transmission/commitdiff
Fix "./update-version-h.sh: Bad substitution"
authorMike Gelfand <mikedld@mikedld.com>
Sat, 14 Jan 2017 22:02:45 +0000 (01:02 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Sat, 14 Jan 2017 22:02:45 +0000 (01:02 +0300)
update-version-h.sh

index 80c06a4f69699e60b4887723445f6bd80d2da506..18169980bb5f551ac250b0975e81dd3ef18e12b8 100755 (executable)
@@ -42,7 +42,7 @@ else
     rm -f "$vcs_revision_file"
 fi
 
-vcs_revision=${vcs_revision:0:10}
+vcs_revision=`echo $vcs_revision | head -c10`
 
 cat > libtransmission/version.h.new << EOF
 #pragma once