Index: trunk/native/macosx/macos-jpackage.sh
===================================================================
--- trunk/native/macosx/macos-jpackage.sh	(revision 18878)
+++ trunk/native/macosx/macos-jpackage.sh	(revision 18879)
@@ -25,7 +25,7 @@
 mkdir app
 
-if [ -z "$CERT_MACOS_P12" ] || [ -z "$CERT_MACOS_PW" ] || [ -z "$APPLE_ID_PW" ]
+if [ -z "$CERT_MACOS_P12" ] || [ -z "$CERT_MACOS_PW" ] || [ -z "$APPLE_ID_PW" ] || [ -z "$APPLE_ID_TEAM" ]
 then
-    echo "CERT_MACOS_P12, CERT_MACOS_PW and APPLE_ID_PW are not set in the environment."
+    echo "CERT_MACOS_P12, CERT_MACOS_PW, APPLE_ID_PW, or APPLE_ID_TEAM are not set in the environment."
     echo "A JOSM.app will be created but not signed nor notarized."
     SIGNAPP=false
@@ -55,4 +55,6 @@
 
 echo "Building and signing app"
+# We specifically need the options to not be quoted -- we _want_ the word splitting.
+# shellcheck disable=SC2086
 jpackage $JPACKAGEOPTIONS -n "JOSM" --input dist --main-jar josm-custom.jar \
     --main-class org.openstreetmap.josm.gui.MainApplication \
