/bin/sh on OSX doesn't understand -n
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 9 May 2015 18:34:52 +0000 (20:34 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Sat, 9 May 2015 22:11:06 +0000 (00:11 +0200)
This breaks PACKAGEVERSION since the -n is left verbatim in the string.
Use the more portable printf instead

version-gen.sh

index 5ab6f78..40c1144 100755 (executable)
@@ -10,4 +10,4 @@ fi
 
 VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
 
-echo -n "$VERSION"
+printf "%s" "$VERSION"