Commit 56610be1 authored by danhimalplanet's avatar danhimalplanet Committed by Marc Cornellà
Browse files

colorize: fix mktemp parameter for compatibility (#7789)

parent 6da85279
......@@ -39,7 +39,7 @@ colorize_via_pygmentize_less() (
trap 'cleanup' EXIT HUP TERM INT
while (( $# != 0 )); do #TODO: filter out less opts
tmp_file="$(mktemp --tmpdir "tmp.colorize.XXXX.$(sed 's/\//./g' <<< "$1")")"
tmp_file="$(mktemp -t "tmp.colorize.XXXX.$(sed 's/\//./g' <<< "$1")")"
tmp_files+=("$tmp_file")
colorize_via_pygmentize "$1" > "$tmp_file"
shift 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment