This commit is contained in:
josc146
2023-06-02 22:20:57 +08:00
parent b41a2e7039
commit e1df1bfc3f
4 changed files with 16 additions and 14 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