X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/f8a734295c2a23119575dc17bdce157d01fbbacb..f1ab8bcb3d0102fe44d2baad1de229f3edce4048:/.mutt/bgrun?ds=sidebyside diff --git a/.mutt/bgrun b/.mutt/bgrun index 890b50e..ad432df 100755 --- a/.mutt/bgrun +++ b/.mutt/bgrun @@ -77,13 +77,13 @@ notify_output() { } guess_extension() { - python -c "import mimetypes; print(mimetypes.guess_extension('$1'))" + python3 -c "import mimetypes; print(mimetypes.guess_extension('$1'))" } get_file() { local t if [ -z "$1" ]; then - t=$(TMPDIR="$PWD" tempfile -s $(guess_extension "$MIMETYPE")) + t=$(mktemp -p "$PWD" tmp.XXXXXXXXXX.$(guess_extension "$MIMETYPE")) cat > "$t" echo "$t" else