From 5fa4b05fe524718a022f33ec9ad640e70fea8927 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 9 Feb 2022 21:36:06 +0900 Subject: githooks:commit-msg: quote variable expansion --- githooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'githooks/commit-msg') diff --git a/githooks/commit-msg b/githooks/commit-msg index 61c2844..67b883f 100755 --- a/githooks/commit-msg +++ b/githooks/commit-msg @@ -133,4 +133,4 @@ fi # Substitute '###' with '#NNNNN', where 'NNNNN' is the issue number. # '$1' is passed by Git, the file name that holds commit message. -sed -i '' -e "s|###|#${issue_number}|g" $1 +sed -i '' -e "s|###|#${issue_number}|g" "${1}" -- cgit v1.2.3-70-g09d2