Moved /tmp to ${_OPT_TMP} option

This commit is contained in:
ayakael 2019-02-21 14:47:26 -05:00
parent a624cae51b
commit 95d3451086
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541

View file

@ -39,7 +39,7 @@
# Prints a normal message # Prints a normal message
# } # }
STDERR=$(mktemp /tmp/STDERR.XXXXXXXXXX) STDERR=$(mktemp ${_OPT_TMP}/STDERR.XXXXXXXXXX)
INDENT=0 INDENT=0
bail() { bail() {
return 1 return 1
@ -77,7 +77,7 @@ _msg(){
cat ${STDERR} cat ${STDERR}
fi fi
rm ${STDERR} rm ${STDERR}
STDERR=$(mktemp /tmp/STDERR.XXXXXXXXXX) STDERR=$(mktemp ${_OPT_TMP}/STDERR.XXXXXXXXXX)
echo -en "$(_ansi lt 100)$(_ansi dn "${HEIGHT}")" echo -en "$(_ansi lt 100)$(_ansi dn "${HEIGHT}")"
elif [ ${1} = "FAIL" ]; then elif [ ${1} = "FAIL" ]; then
shift; shift;
@ -92,7 +92,7 @@ _msg(){
cat ${STDERR} cat ${STDERR}
fi fi
rm ${STDERR} rm ${STDERR}
STDERR=$(mktemp /tmp/STDERR.XXXXXXXXXX) STDERR=$(mktemp ${_OPT_TMP}/STDERR.XXXXXXXXXX)
echo -en "$(_ansi lt 100)$(_ansi dn "${HEIGHT}")" echo -en "$(_ansi lt 100)$(_ansi dn "${HEIGHT}")"
bail bail
elif [ ${1} = "ECHO" ]; then elif [ ${1} = "ECHO" ]; then