summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-05-25 21:02:53 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-05-25 21:02:53 -0400
commit55f810ef6939d5aecd3bfb8a10b62c21ee484d23 (patch)
treeadfdf6462daff50b57148bf01b20e6b95ee6635c /bin
parent3bf2023dd5a82ed1b3e53aad4d24d537e68105fc (diff)
minor tweaks
Diffstat (limited to 'bin')
-rwxr-xr-xbin/openfile2
1 files changed, 1 insertions, 1 deletions
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"