From 30a491f7d6caed9b74a8296cdcb702163283a1f1 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Fri, 17 Apr 2020 19:54:58 +0200 Subject: [PATCH] fixed bug that caused the release mechanism to fail when the build directory contains old packages --- scripts/release_lipase_package.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/release_lipase_package.bash b/scripts/release_lipase_package.bash index d3551aa..6b79fda 100755 --- a/scripts/release_lipase_package.bash +++ b/scripts/release_lipase_package.bash @@ -1,5 +1,7 @@ #!/bin/bash -LIPASE_PACKAGE_FILE_PATH=$(ls build/lipase*.zip) +# LIPASE_PACKAGE_FILE_PATH=$(ls build/lipase*.zip | tail -1) # tail is not guaranteed to be the latest version once we move from vertion 9 to version 10 +LIPASE_VERSION=$(cat ../Makefile | awk -F= '/^LIPASE_VERSION/ {print $2}') +LIPASE_PACKAGE_FILE_PATH="build/lipase-${LIPASE_VERSION}.zip" LIPASE_USER_MANUAL_PATH=$(pwd)/doc/lipase.pdf echo "LIPASE_PACKAGE_FILE_PATH=$LIPASE_PACKAGE_FILE_PATH" LIPASE_PACKAGE_FILE_NAME=$(basename $LIPASE_PACKAGE_FILE_PATH)