Skip to content

Commit

Permalink
Simplify MKTEMP_DT logic
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlinp committed Nov 15, 2018
1 parent dbfc89f commit edb76e2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/training/tesstrain_utils.sh
Expand Up @@ -25,14 +25,7 @@ else

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

case $UNAME in
darwin | *freebsd | dragonfly | cygwin*)
MKTEMP_DT="mktemp -d -t"
;;
* )
MKTEMP_DT="mktemp -d --tmpdir"
;;
esac
MKTEMP_DT="mktemp -d -t"
FONT_CONFIG_CACHE=$(${MKTEMP_DT} font_tmp.XXXXXXXXXX)

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

0 comments on commit edb76e2

Please sign in to comment.