#!/bin/sh

[ -z "${VERSION}" ] && VERSION=`git describe --tags --always 2>/dev/null` \
                    && VERSION=${VERSION#v}

[ -z "${VERSION}" ] && VERSION=`basename \`pwd\`` \
                    && VERSION=${VERSION#*-}

echo -n ${VERSION}

#!/bin/sh

[ -z "${VERSION}" ] && VERSION=`git describe --tags --always 2>/dev/null` \
                    && VERSION=${VERSION#v}

[ -z "${VERSION}" ] && VERSION=`basename \`pwd\`` \
                    && VERSION=${VERSION#*-}

printf ${VERSION}

Use printf instead of echo -n
Use printf instead of echo -n
