Skip to content

Commit edb76e2

Browse files
committed
Simplify MKTEMP_DT logic
1 parent dbfc89f commit edb76e2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/training/tesstrain_utils.sh

+1-8
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,7 @@ else
2525

2626
UNAME=$(uname -s | tr 'A-Z' 'a-z')
2727

28-
case $UNAME in
29-
darwin | *freebsd | dragonfly | cygwin*)
30-
MKTEMP_DT="mktemp -d -t"
31-
;;
32-
* )
33-
MKTEMP_DT="mktemp -d --tmpdir"
34-
;;
35-
esac
28+
MKTEMP_DT="mktemp -d -t"
3629
FONT_CONFIG_CACHE=$(${MKTEMP_DT} font_tmp.XXXXXXXXXX)
3730

3831
if [[ ($UNAME == *darwin*) ]]; then

0 commit comments

Comments
 (0)