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~12^2~5^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a2c0ff89b4792142dff02ee46bc5a578a5e6063e;p=collectd.git /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 5ab6f78f..40c11441 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"