Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
underthestars-zhy committed Jul 6, 2022
1 parent da961a0 commit a9f742b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IconChanger/IconManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class IconManager: ObservableObject {

try run()

// try copy.write(to: path, atomically: true, encoding: .utf8)
try copy.write(to: path, atomically: true, encoding: .utf8)
}

func setImage(_ image: NSImage, app: LaunchPadManagerDBHelper.AppInfo) throws {
Expand Down Expand Up @@ -185,7 +185,7 @@ class IconManager: ObservableObject {

func runHelperTool() throws {
let helperToolURL = URL.documents.universalappending(path: "helper.sh")
print(try Self.safeShell("sudo \(helperToolURL.universalPath())"))
try Self.safeShell("sudo \(helperToolURL.universalPath())")
}

@discardableResult
Expand Down

0 comments on commit a9f742b

Please sign in to comment.