macOS chore

This commit is contained in:
josc146
2023-06-06 20:49:31 +08:00
parent 5853b8ca8d
commit c28f5604ab
5 changed files with 36 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ func Cmd(args ...string) (string, error) {
return "", err
}
exDir := filepath.Dir(ex) + "/../../../"
cmd := exec.Command("osascript", "-e", `tell application 'Terminal' to do script '`+"cd "+exDir+" && "+strings.Join(args, " ")+`'`)
cmd := exec.Command("osascript", "-e", `tell application "Terminal" to do script "`+"cd "+exDir+" && "+strings.Join(args, " ")+`"`)
err = cmd.Start()
if err != nil {
return "", err