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

version-gen.sh

index 7b573ab..460c6e9 100755 (executable)
@@ -10,4 +10,4 @@ fi
 
 VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
 
-echo -n "$VERSION"
+printf "%s" "$VERSION"