From c4a53091afde43cf95178093726c96d81ab5241b Mon Sep 17 00:00:00 2001 From: BarbUk Date: Fri, 12 Nov 2021 11:52:18 +0100 Subject: [PATCH] Fix shellcheck issue 2155 --- snippy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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