Use TMPDIR if it's set instead of /tmp.
https://github.com/BlueM/Pashua-Binding-Bash/pull/3
--- pashua.sh.orig	2015-02-23 08:01:43.000000000 -0600
+++ pashua.sh	2020-06-19 15:52:54.000000000 -0500
@@ -41,7 +42,7 @@
 pashua_run() {
 
     # Write config file
-    local pashua_configfile=`/usr/bin/mktemp /tmp/pashua_XXXXXXXXX`
+    local pashua_configfile=`/usr/bin/mktemp "${TMPDIR:-/tmp}"/pashua_XXXXXXXXX`
     echo "$1" > "$pashua_configfile"
 
     locate_pashua "$2"
