Actually check that the snap is built

This commit is contained in:
2025-04-15 18:13:36 -04:00
parent 3897ac7697
commit 5f682707f6

View File

@@ -1133,7 +1133,8 @@ install_mc_snap() {
-w /build \
--entrypoint "" \
ghcr.io/canonical/snapcraft:8_core24 \
snapcraft pack -o "${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap" --destructive-mode; then
snapcraft pack -o "${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap" --destructive-mode \
&& [[ -f "$snap_dir/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap" ]]; then
echo "Snap package built successfully: $snap_dir/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap"
else
err "Snap package build failed."