Browse Source

package_mac.sh: fix fallback to hdiutil

Reid Priedhorsky 1 year ago
parent
commit
c9c21d8e18
1 changed files with 1 additions and 2 deletions
  1. 1 2
      scripts/package_mac.sh

+ 1 - 2
scripts/package_mac.sh

@@ -115,8 +115,7 @@ if [ "$MODE" == "app-store" ]; then
 	cp "$SIGNED/UTM.pkg" "$OUTPUT/UTM.pkg"
 else
 	rm -f "$OUTPUT/UTM.dmg"
-	command -v appdmg >/dev/null 2>&1
-	if [ $? -eq 0 ]; then
+	if command -v appdmg >/dev/null 2>&1; then
 		RESOURCES="/tmp/resources.$$"
 		cp -r "$BASEDIR/resources" "$RESOURCES"
 		sed -i '' "s/\/tmp\/signed\/UTM.app/\/tmp\/signed.$$\/UTM.app/g" "$RESOURCES/appdmg.json"