Permalink
Browse files

Simplify version extraction.

  • Loading branch information...
wojtekw92 authored and f1ames committed Sep 15, 2017
1 parent f6e3f11 commit c5ffdd02c39e5f329d4b0d1982b0fbb3bc1686ee
Showing with 1 addition and 1 deletion.
  1. +1 −1 dev/builder/build.sh
View
@@ -57,7 +57,7 @@ echo "Starting CKBuilder..."
JAVA_ARGS=${ARGS// -t / } # Remove -t from args.
VERSION=$(cat ./../../package.json | grep \"version\"\: | awk -F: '{ print $2}' | sed 's/[\",]//g' | tr -d '[[:space:]]')
VERSION=$(grep '"version":' ./../../package.json | sed $'s/[\t\",: ]//g; s/version//g' | tr -d '[[:space:]]')
REVISION=$(git rev-parse --verify --short HEAD)
# If the current revision is not tagged with any CKE version, it means it's a "dirty" build. We

0 comments on commit c5ffdd0

Please sign in to comment.