diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-02-09 21:36:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-02-09 21:36:06 +0900 |
| commit | 5fa4b05fe524718a022f33ec9ad640e70fea8927 (patch) | |
| tree | 194fa9242e9317cd315b6f534e97fdeabe75d2e7 /githooks/commit-msg | |
| parent | 7eb58f2e7fb0ad2dc9c8ef39e327784a362e9365 (diff) | |
| download | dotfiles-5fa4b05fe524718a022f33ec9ad640e70fea8927.tar.gz dotfiles-5fa4b05fe524718a022f33ec9ad640e70fea8927.tar.zst dotfiles-5fa4b05fe524718a022f33ec9ad640e70fea8927.zip | |
githooks:commit-msg: quote variable expansion
Diffstat (limited to 'githooks/commit-msg')
| -rwxr-xr-x | githooks/commit-msg | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |
