Commit 062d8e4c authored by John A's avatar John A

Fix mktemp bug that placed file in wrong location

parent a08c9e76
......@@ -38,6 +38,7 @@ flag_h=0
# non-CLI options
messageWidth=20
verbose=0
seed="$RANDOM"
# ensure Bash version >= 4.0
ver="$(printf '%s' "$BASH_VERSION" | cut -d . -f 1)"
......@@ -365,7 +366,7 @@ init() {
fi
# setup temp file for caching times of each growth
tmpFile="$(mktemp bonsai.sh.XXXXXXXX)"
tmpFile="$(mktemp -p /tmp bonsai.sh.XXXXXXXX)"
}
grow() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment