Skip to content

Commit 47787f4

Browse files
fix link open in browser error due to forgetting to wrap open command arg in string
1 parent a2e51bd commit 47787f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/cmd/read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func runReadCmd(cmd *cobra.Command, args []string) {
3636

3737
// If the --open or -o flag is passed, open the cipher bin web app link in browser
3838
if OpenInBrowser {
39-
_, err := exec.Command("bash", "-c", fmt.Sprintf("open %s", url)).Output()
39+
_, err := exec.Command("bash", "-c", fmt.Sprintf("open %s", fmt.Sprintf("'%s'", url))).Output()
4040
if err != nil {
4141
colors.Println("Sorry, there was an error opening the message in your browser", colors.Red)
4242
os.Exit(1)

0 commit comments

Comments
 (0)