diff --git a/bin/release-flatpack.sh b/bin/release-flatpack.sh index 9b741cb2f..f9fcf43f0 100755 --- a/bin/release-flatpack.sh +++ b/bin/release-flatpack.sh @@ -13,6 +13,9 @@ then exit 1 fi +VERSION_DATE=$(git log -1 --format=%aI "v${VERSION}" | cut -c -10) +VERSION_COMMIT=$(git rev-list -n 1 "v${VERSION}") + # expecting the directory at a specific path cd ~/trilium-flathub @@ -21,7 +24,7 @@ if ! git diff-index --quiet HEAD --; then exit 1 fi -if [[ $VERSION == *"beta"* ]]; then +if [[ "$VERSION" == *"beta"* ]]; then git switch beta else git switch master @@ -29,9 +32,6 @@ fi git pull -VERSION_DATE=$(git log -1 --format=%aI v${VERSION} | cut -c -10) -VERSION_COMMIT=$(git rev-list -n 1 v${VERSION}) - echo "Updating files with version ${VERSION}, date ${VERSION_DATE} and commit ${VERSION_COMMIT}" flatpak-node-generator npm ../trilium/package-lock.json