From aa0ea4646517716f7198ea5c5331123c4bdabb6e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 14 Mar 2016 11:33:07 +0100 Subject: [PATCH] not all UNIX `echo` commands support -n FreeBSD and OSX's does not, for example, and the shell should just treat the '\n' as white space in the command line. --- hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index f0e4d657..0f083d00 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -75,7 +75,7 @@ find_command() { for suff in "3" "-python3" ""; do cmd=${1}${suff} if cmd_exists $cmd; then - echo -n $cmd + echo $cmd return 0 fi done -- 2.30.2