From aa454f8ca2f40c56b007d7ca17eb4162ba60a8d5 Mon Sep 17 00:00:00 2001 From: BarbUk Date: Fri, 18 Jun 2021 14:03:12 +0400 Subject: [PATCH] Disable shellcheck warning for readonly var --- snippy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippy b/snippy index ffbadb5..c1e8e3e 100755 --- a/snippy +++ b/snippy @@ -59,8 +59,8 @@ readonly placeholder_cursor="{cursor}" readonly placeholder_clipboard="{clipboard}" readonly placeholder_clipboard_urlencode="{clipboard_urlencode}" -readonly tmpfile -tmpfile=$(mktemp) +# shellcheck disable=2155 +readonly tmpfile=$(mktemp) trap 'rm -f $tmpfile' EXIT HUP INT TRAP TERM # colors