diff options
author | JameyBear <WhispersofJ@gmail.com> | 2020-05-31 12:10:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 12:10:35 -0400 |
commit | bb72cf5a71418a3d8eaa3cc731a2b8a8627e9c1c (patch) | |
tree | 7f7f6a2e4e3e579d18db6ce928bdd7076702023b /bin/openfile | |
parent | 7c41c5e1e65d4f90bf2cdfebd51235d747807b5b (diff) |
Cleanup (#450)
* Simple Fixes
* Tweak wording
* Update openfile
* ShellChecked
* Little Fixes
Diffstat (limited to 'bin/openfile')
-rwxr-xr-x | bin/openfile | 2 |
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" |