From caf7ac4a035afe79f26a8393aeaa8288b149f6b5 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Tue, 20 Mar 2018 17:52:18 -0700 Subject: [PATCH] tg-tag.sh: remove shell-confusing, unnecessary space Some archaic shells treat this: flag=1 foo ${flag:+ --flag} incorrectly as this: foo ' --flag' and fail to perform the correct word-splitting that would remove the superfluous whitespace. As the whitespace in question is completely unnecessary remove it to accomodate those archaic shells. Signed-off-by: Kyle J. McKay --- tg-tag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tg-tag.sh b/tg-tag.sh index b9204a6..0cf214c 100644 --- a/tg-tag.sh +++ b/tg-tag.sh @@ -781,7 +781,7 @@ EOT die "there was a problem with the editor '$tg_editor'" fi fi -git stripspace ${stripcomments:+ --strip-comments} \ +git stripspace ${stripcomments:+--strip-comments} \ <"$git_dir/TAG_EDITMSG" >"$git_dir/TGTAG_FINALMSG" [ -s "$git_dir/TGTAG_FINALMSG" ] || die "no tag message?" echo "" >>"$git_dir/TGTAG_FINALMSG" -- 2.11.4.GIT