Merge pull request #4735 from tretinha/master

Add ".html" suffix to mktemp in userscript "format_json"
This commit is contained in:
Florian Bruhin 2019-04-25 07:24:45 -07:00 committed by GitHub
commit c3b6b0dcb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ MAX_SIZE_PRETTIFY=10485760 # 10 MB
# default style to monokai if none is provided
STYLE=${1:-monokai}
TEMP_FILE="$(mktemp)"
TEMP_FILE="$(mktemp --suffix .html)"
jq . "$QUTE_TEXT" >"$TEMP_FILE"
# try GNU stat first and then OSX stat if the former fails