diff options
Diffstat (limited to 'mutt-open')
-rwxr-xr-x | mutt-open | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -7,7 +7,8 @@ set -euo pipefail command=$1 file=$2 -tmpdir=$(mktemp -d 'mutt-open.XXXXXXXXX') -filename="${1##*/}" +tmpdir=$(mktemp -p /tmp -d 'mutt-open.XXXXXXXXX') +filename="${file##*/}" cp "$file" "$tmpdir/$filename" -systemd-cat "$command" "$tmpdir/$filename" +systemd-cat "$command" "$tmpdir/$filename" & +disown |