From 3c5870d4f52c91bf8f73846ef2b1da74bbb22693 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Tue, 23 Jan 2018 22:14:01 +0300 Subject: [PATCH] Use `head` instead of bash extension to get revision substring --- update-version-h.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-version-h.sh b/update-version-h.sh index 80c06a4f6..2679b466b 100755 --- a/update-version-h.sh +++ b/update-version-h.sh @@ -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