From 59297cbd2a6a5c78f131e3b1a8c60710198f5213 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 21 Nov 2024 10:04:34 +0100 Subject: Fixing shellcheck errors --- local/bin/screenshot-prompt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'local/bin/screenshot-prompt') diff --git a/local/bin/screenshot-prompt b/local/bin/screenshot-prompt index 6852eba..b320178 100755 --- a/local/bin/screenshot-prompt +++ b/local/bin/screenshot-prompt @@ -23,6 +23,7 @@ screenshot_dir="$HOME/screenshots" [ ! -d "$screenshot_dir" ] && mkdir "$screenshot_dir" scrot_wrapper() { + # shellcheck disable=SC2016 file_format="$screenshot_dir/"'%Y-%m-%d_$wx$h.png' if [ "$1" = '-' ] then @@ -30,6 +31,7 @@ scrot_wrapper() { shift else # optipng optimizes png size without loss (doesn't work if we output directly to stdout) + # shellcheck disable=SC2016 command -v optipng && optipng_arg='optipng -o4 $f' fi scrot --silent --quality 95 --compression 9 --file "$file_format" -e "$optipng_arg" "$@" -- cgit