Skip to content

Commit

Permalink
Fix weird version format due to -SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Dec 15, 2021
1 parent 3c99085 commit c86e364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ -z "$BN" ]; then
BN="0"
fi
source ./scripts/functions.sh
apiversion=$(mvn -f Blueberry-API/pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
apiversion=$(mvn -f Blueberry-API/pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout | sed s/-SNAPSHOT//)
datetime=$(date +%Y-%m-%dT%T%:z)
commit=$(git rev-parse HEAD)
cd "$basedir/MagmaCube/Minecraft" || exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/createInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ -z "$BN" ]; then
fi
source "$basedir/scripts/functions.sh" || exit 1
git="git -c commit.gpgsign=false"
apiversion=$(mvn -f Blueberry-API/pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
apiversion=$(mvn -f Blueberry-API/pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout | sed s/-SNAPSHOT//)
datetime=$(date +%Y-%m-%dT%T%:z)
if [ ! -e "$basedir/work/Installer" ]; then
$git clone https://github.com/BlueberryMC/Installer "$basedir/work/Installer" || exit 1
Expand Down

0 comments on commit c86e364

Please sign in to comment.