Fix trap to delete temp file

This commit is contained in:
BarbUk 2018-12-22 16:22:22 +04:00
parent 0437577983
commit ec8e31a946

2
snippy
View File

@ -57,7 +57,7 @@ readonly cursor_placeholder="{cursor}"
readonly clipboard_placeholder="{clipboard}"
readonly tmpfile=$(mktemp)
trap 'rm -f \$tmpfile' EXIT HUP INT TRAP TERM
trap 'rm -f $tmpfile' EXIT HUP INT TRAP TERM
# smarty like template engine which executes inline bash in (bashdown) strings (replaces variables with values e.g.)
# @link http://github.com/coderofsalvation/bashdown