Revision is read from configuration so version must be set after loading the script.

This commit is contained in:
Igor Pečovnik
2015-12-14 19:50:14 +01:00
parent 094af35c75
commit 1a7f6a974d

View File

@@ -175,10 +175,6 @@ if [[ "$RELEASE" == "precise" || "$RELEASE" == "trusty" ]]; then DISTRIBUTION="U
# set hostname to the board
HOST="$BOARD"
# The name of the job
VERSION="Armbian $REVISION ${BOARD^} $DISTRIBUTION $RELEASE $BRANCH"
echo `date +"%d.%m.%Y %H:%M:%S"` $VERSION > $DEST/debug/install.log
# Load libraries
source $SRC/lib/configuration.sh # Board configuration
source $SRC/lib/debootstrap.sh # System specific install
@@ -189,6 +185,10 @@ source $SRC/lib/desktop.sh # Desktop specific install
source $SRC/lib/common.sh # Functions
source $SRC/lib/makeboarddeb.sh # Create board support package
# The name of the job
VERSION="Armbian $REVISION ${BOARD^} $DISTRIBUTION $RELEASE $BRANCH"
echo `date +"%d.%m.%Y %H:%M:%S"` $VERSION > $DEST/debug/install.log
# needed if process failed in the middle
umount_image