lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 4d4ac2a 1/3: Improve concinnity


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4d4ac2a 1/3: Improve concinnity
Date: Sun, 19 Feb 2017 11:39:13 -0500 (EST)

branch: master
commit 4d4ac2a4af30bf6d15ee92e13f97cb4022a8c4e3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Improve concinnity
    
    Use "printf '%s' here because that's what the other hook in this
    directory does and it's appropriate in both cases.
---
 hooks/commit-msg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hooks/commit-msg b/hooks/commit-msg
index c969180..645959f 100755
--- a/hooks/commit-msg
+++ b/hooks/commit-msg
@@ -34,7 +34,7 @@ printf "checking commit message..."
 z=$(sed -n -e "$sed_script" "$1")
 
 if [ -n "$z" ]; then
-    printf '\n%b\n' "$z"
+    printf '\n%s\n' "$z"
     printf "COMMIT ABORTED\n"
     exit 1
 fi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]