summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os_default_platform.go
diff options
context:
space:
mode:
authorSascha Andres <sascha.andres@outlook.com>2018-09-10 10:31:15 +0200
committerSascha Andres <sascha.andres@outlook.com>2018-09-10 10:31:15 +0200
commitbb9698810d92dd1d59a0ee0e1ef192dee588036d (patch)
tree6073edf49f00c028e4f03241fd215bba073cf07f /pkg/commands/os_default_platform.go
parent74144e3892253f72d703e3b324fb8459a0d45369 (diff)
refactor: move fallback to platform struct
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
Diffstat (limited to 'pkg/commands/os_default_platform.go')
-rw-r--r--pkg/commands/os_default_platform.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkg/commands/os_default_platform.go b/pkg/commands/os_default_platform.go
index f106bbd62..7b063417b 100644
--- a/pkg/commands/os_default_platform.go
+++ b/pkg/commands/os_default_platform.go
@@ -8,10 +8,11 @@ import (
func getPlatform() *Platform {
return &Platform{
- os: runtime.GOOS,
- shell: "bash",
- shellArg: "-c",
- escapedQuote: "\"",
- openCommand: "open {{filename}}",
+ os: runtime.GOOS,
+ shell: "bash",
+ shellArg: "-c",
+ escapedQuote: "'",
+ openCommand: "open {{filename}}",
+ fallbackEscapedQuote: "\"",
}
}