]> granicus.if.org Git - transmission/commitdiff
Use `head` instead of bash extension to get revision substring 2.93
authorMike Gelfand <mikedld@mikedld.com>
Tue, 23 Jan 2018 19:14:01 +0000 (22:14 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Tue, 23 Jan 2018 19:14:01 +0000 (22:14 +0300)
update-version-h.sh

index 80c06a4f69699e60b4887723445f6bd80d2da506..2679b466b7acb02464b4cc993bf21122c61e49eb 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