aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/commit-msg4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/commit-msg b/tools/commit-msg
index cefedd0e8a..6ac323c8a4 100755
--- a/tools/commit-msg
+++ b/tools/commit-msg
@@ -184,10 +184,10 @@ _gen_ChangeId() {
}
reject_long_message() {
- read -r firstline < $MSG
+ read -r firstline < "$MSG"
if [ ${#firstline} -gt 80 ]
then
- echo "\n\nERROR: First line in the commit message must not exceed 80 characters\n\n"
+ printf "\n\nERROR: First line in the commit message must not exceed 80 characters\n\n"
exit 1
fi
}