From: Hans-Christoph Steiner Date: Mon, 14 Mar 2016 10:33:07 +0000 (+0100) Subject: not all UNIX `echo` commands support -n X-Git-Tag: 0.7.0~83^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=aa0ea4646517716f7198ea5c5331123c4bdabb6e;p=fdroidserver.git 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. --- 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