Skip to content

Build your personal knowledge base with Trilium Notes

flatpak release script fixes

zadam7233f5876753
diff --git a/bin/release-flatpack.sh b/bin/release-flatpack.sh
index 9b741cb2fa..f9fcf43f0d 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