diff --git a/dockutil.xcodeproj/project.pbxproj b/dockutil.xcodeproj/project.pbxproj index e891131..979628f 100644 --- a/dockutil.xcodeproj/project.pbxproj +++ b/dockutil.xcodeproj/project.pbxproj @@ -344,7 +344,7 @@ ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "$(SRCROOT)/dockutil/Info.plist"; MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = "3.0.0-beta.3"; + MARKETING_VERSION = 3.0.0; PRODUCT_BUNDLE_IDENTIFIER = dockutil.cli.tool; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; @@ -361,7 +361,7 @@ ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "$(SRCROOT)/dockutil/Info.plist"; MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = "3.0.0-beta.3"; + MARKETING_VERSION = 3.0.0; PRODUCT_BUNDLE_IDENTIFIER = dockutil.cli.tool; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/UserInterfaceState.xcuserstate b/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/UserInterfaceState.xcuserstate index cbfa80a..91f5080 100644 Binary files a/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/UserInterfaceState.xcuserstate and b/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/dockutil/Dock.swift b/dockutil/Dock.swift index 60a6a35..54122c2 100644 --- a/dockutil/Dock.swift +++ b/dockutil/Dock.swift @@ -134,7 +134,7 @@ class Dock { stdInPipe.fileHandleForWriting.write(plistData) stdInPipe.fileHandleForWriting.closeFile() p.waitUntilExit() - print(p.terminationStatus) + gv > 0 ? print(p.terminationStatus):nil } else { let p = Process() p.executableURL = URL(fileURLWithPath: "/usr/bin/defaults") @@ -145,7 +145,7 @@ class Dock { stdInPipe.fileHandleForWriting.write(plistData) stdInPipe.fileHandleForWriting.closeFile() p.waitUntilExit() - print(p.terminationStatus) + gv > 0 ? print(p.terminationStatus):nil try? FileManager.default.setAttributes([.ownerAccountID: originalOwnerID], ofItemAtPath: self.path) // chown to original owner }