From 61507d8f3db86d4ea7bc5e1b6f7396f2677a7ddd Mon Sep 17 00:00:00 2001 From: BarbUk Date: Fri, 18 Jun 2021 13:59:47 +0400 Subject: [PATCH] Fix shellcheck warnings --- snippy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snippy b/snippy index f5b2d43..ffbadb5 100755 --- a/snippy +++ b/snippy @@ -52,15 +52,15 @@ set -o errexit -o pipefail -o nounset readonly snippets_directory=${XDG_CONFIG_HOME:-$HOME/.config}/snippy readonly rofi_args=(-no-lazy-grab -dmenu -i -sort -sorting-method fzf -async-pre-read 20 -theme-str 'element-icon { size: 2.35ch;}' -kb-accept-custom "" -kb-custom-1 "Ctrl+Return") -readonly fzf_args=(--select-1 --reverse --inline-info --multi --preview '( bat --style auto --color always --language bash {} || highlight --force -O ansi -l {} 2> /dev/null ) | head -200' -1) +readonly fzf_args=(--select-1 --reverse --inline-info --multi --preview '( bat --style auto --color always --language bash {} 2> /dev/null || highlight --force -O ansi -l {} 2> /dev/null ) | head -200' -1) # Placeholders readonly placeholder_cursor="{cursor}" readonly placeholder_clipboard="{clipboard}" readonly placeholder_clipboard_urlencode="{clipboard_urlencode}" -readonly placeholder_date="{clipboard_urlencode}" -readonly tmpfile=$(mktemp) +readonly tmpfile +tmpfile=$(mktemp) trap 'rm -f $tmpfile' EXIT HUP INT TRAP TERM # colors