minor tweaks

This commit is contained in:
Luke Smith
2020-05-25 21:02:53 -04:00
parent 3bf2023dd5
commit 55f810ef69
2 changed files with 2 additions and 1 deletions

View File

@ -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"