diff --git a/snippy b/snippy index c1e8e3e..ef55ccd 100755 --- a/snippy +++ b/snippy @@ -59,8 +59,8 @@ readonly placeholder_cursor="{cursor}" readonly placeholder_clipboard="{clipboard}" readonly placeholder_clipboard_urlencode="{clipboard_urlencode}" -# shellcheck disable=2155 -readonly tmpfile=$(mktemp) +tmpfile=$(mktemp) +readonly tmpfile trap 'rm -f $tmpfile' EXIT HUP INT TRAP TERM # colors