mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
scripts/image: simplyfing detection of devel version, thanks to '_gio'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user