From: Ruben Kerkhof Date: Sat, 9 May 2015 18:34:52 +0000 (+0200) Subject: /bin/sh on OSX doesn't understand -n X-Git-Tag: collectd-5.5.0~30^2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=b2086f25ed8449cc63f2459ad67d06fa39ae263c /bin/sh on OSX doesn't understand -n This breaks PACKAGEVERSION since the -n is left verbatim in the string. Use the more portable printf instead --- diff --git a/version-gen.sh b/version-gen.sh index 7b573ab7..460c6e9d 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -10,4 +10,4 @@ fi VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`" -echo -n "$VERSION" +printf "%s" "$VERSION"