From 68cf68ea708a3544779a0aae81d52199ca8b15ed Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 25 Jul 2024 03:44:00 +0000 Subject: [PATCH] Fix macos display name for preview versions --- core/src/main/java/io/xpipe/core/process/OsType.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/io/xpipe/core/process/OsType.java b/core/src/main/java/io/xpipe/core/process/OsType.java index f977700b7..5a07ab29b 100644 --- a/core/src/main/java/io/xpipe/core/process/OsType.java +++ b/core/src/main/java/io/xpipe/core/process/OsType.java @@ -302,6 +302,10 @@ public interface OsType { "awk '/SOFTWARE LICENSE AGREEMENT FOR macOS/' '/System/Library/CoreServices/Setup " + "Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf' | " + "awk -F 'macOS ' '{print $NF}' | awk '{print substr($0, 0, length($0)-1)}'"); + // For preleases and others + if (name.isBlank()) { + name = "?"; + } return properties.get("ProductName") + " " + name + " " + properties.get("ProductVersion"); } }