diff --git a/installJRMC b/installJRMC index 51dd2da..05dbcb5 100755 --- a/installJRMC +++ b/installJRMC @@ -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."