mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-13 17:30:08 +00:00
colorize: fix mktemp parameter for compatibility (#7789)
This commit is contained in:
parent
6da85279eb
commit
56610be198
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ colorize_via_pygmentize_less() (
|
||||||
trap 'cleanup' EXIT HUP TERM INT
|
trap 'cleanup' EXIT HUP TERM INT
|
||||||
|
|
||||||
while (( $# != 0 )); do #TODO: filter out less opts
|
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")
|
tmp_files+=("$tmp_file")
|
||||||
colorize_via_pygmentize "$1" > "$tmp_file"
|
colorize_via_pygmentize "$1" > "$tmp_file"
|
||||||
shift 1
|
shift 1
|
||||||
|
|
Loading…
Reference in a new issue