From 95d34510868d9d22348d16f67f09bb9395ec965a Mon Sep 17 00:00:00 2001 From: ayakael Date: Thu, 21 Feb 2019 14:47:26 -0500 Subject: [PATCH] Moved /tmp to ${_OPT_TMP} option --- src/msg.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/msg.sh b/src/msg.sh index 5a4fd79..8911817 100644 --- a/src/msg.sh +++ b/src/msg.sh @@ -39,7 +39,7 @@ # Prints a normal message # } -STDERR=$(mktemp /tmp/STDERR.XXXXXXXXXX) +STDERR=$(mktemp ${_OPT_TMP}/STDERR.XXXXXXXXXX) INDENT=0 bail() { return 1 @@ -77,7 +77,7 @@ _msg(){ cat ${STDERR} fi rm ${STDERR} - STDERR=$(mktemp /tmp/STDERR.XXXXXXXXXX) + STDERR=$(mktemp ${_OPT_TMP}/STDERR.XXXXXXXXXX) echo -en "$(_ansi lt 100)$(_ansi dn "${HEIGHT}")" elif [ ${1} = "FAIL" ]; then shift; @@ -92,7 +92,7 @@ _msg(){ cat ${STDERR} fi rm ${STDERR} - STDERR=$(mktemp /tmp/STDERR.XXXXXXXXXX) + STDERR=$(mktemp ${_OPT_TMP}/STDERR.XXXXXXXXXX) echo -en "$(_ansi lt 100)$(_ansi dn "${HEIGHT}")" bail elif [ ${1} = "ECHO" ]; then