scripts/image: simplyfing detection of devel version, thanks to '_gio'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-06-06 23:50:47 +02:00
parent eb1783e5cf
commit 6e0c3c356f

View File

@ -35,8 +35,8 @@ export INSTALL=$BUILD/image/system
BUILD_DATE=`date +%Y%m%d%H%M%S`
if [ "$OPENELEC_VERSION" = devel -o "$OPENELEC_VERSION" = debug ]; then
GIT_BUILD=`git rev-list HEAD | wc -l`
GIT_HASH=`git rev-parse HEAD`
GIT_BUILD=$(git rev-list --count HEAD)
GIT_HASH=$(git rev-parse HEAD)
OPENELEC_VERSION=$OPENELEC_VERSION-$BUILD_DATE-r$GIT_BUILD
fi