Commit 0e0d4397 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

read VERSION fix

parent 4a39968a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -123,13 +123,12 @@ add(){ # Add bundle
}

DIRECTORY=$(cd "$(dirname "$0")" && pwd)

#get max version
if [[ ! -f ${DIRECTORY}/VERSION ]]
if [[ ! -f ${DIRECTORY}/.max/VERSION ]]
then
  MAX_VERSION=$(git rev-parse HEAD)'-dev'
else
  MAX_VERSION=$(cat "${DIRECTORY}/VERSION")
  MAX_VERSION=$(cat "${DIRECTORY}/.max/VERSION")
fi