From 7c19172f87b6fe35dffd8f9a252c3c10efe13aa2 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 25 Nov 2025 22:40:16 +0400 Subject: fix(scripts): fix shellcheck errors and warnings --- scripts/gui/shot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/gui/shot') diff --git a/scripts/gui/shot b/scripts/gui/shot index e24e551..e7d2d08 100755 --- a/scripts/gui/shot +++ b/scripts/gui/shot @@ -52,7 +52,9 @@ fi if [ "${mode}" = "select" ]; then run --no-exit --reload-compositor \ - "screenshot_handle ${mode} ${outfile}" && echo "${outfile}" + screenshot_handle "${mode}" "${outfile}" + + [ $? -eq 0 ] && echo "${outfile}" else screenshot_handle "${mode}" "${outfile}" && echo "${outfile}" fi -- cgit v1.2.3