From df7ffcaecd8a9fb07de6228137f93e9035680ab3 Mon Sep 17 00:00:00 2001 From: JameyBear Date: Sun, 31 May 2020 10:37:46 -0400 Subject: [PATCH] Update openfile --- bin/openfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/openfile b/bin/openfile index c0e2e9c..f6668dc 100755 --- a/bin/openfile +++ b/bin/openfile @@ -1,7 +1,7 @@ #!/bin/sh # Helps open a file with xdg-open from mutt in a external program without weird side effects. -[ $(uname) = "Darwin" ] && opener="open" || opener="setsid xdg-open" +[ "$(uname)" = "Darwin" ] && opener="open" || opener="setsid xdg-open" mkdir -p "/tmp/$USER-mutt-tmp" file="/tmp/$USER-mutt-tmp/$(basename "$1")" rm -f "$file"