Fix trap to delete temp file
This commit is contained in:
parent
0437577983
commit
ec8e31a946
2
snippy
2
snippy
@ -57,7 +57,7 @@ readonly cursor_placeholder="{cursor}"
|
|||||||
readonly clipboard_placeholder="{clipboard}"
|
readonly clipboard_placeholder="{clipboard}"
|
||||||
|
|
||||||
readonly tmpfile=$(mktemp)
|
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.)
|
# smarty like template engine which executes inline bash in (bashdown) strings (replaces variables with values e.g.)
|
||||||
# @link http://github.com/coderofsalvation/bashdown
|
# @link http://github.com/coderofsalvation/bashdown
|
||||||
|
Loading…
Reference in New Issue
Block a user