summaryrefslogtreecommitdiff
path: root/scripts/gui/shot
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-11-25 22:40:16 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-11-25 22:40:16 +0400
commit7c19172f87b6fe35dffd8f9a252c3c10efe13aa2 (patch)
treef42dd1ffd3440200977ea4c38950458f57bd534c /scripts/gui/shot
parentaf078c55f03e2884b883abb095c623b96fa97ec5 (diff)
fix(scripts): fix shellcheck errors and warnings
Diffstat (limited to 'scripts/gui/shot')
-rwxr-xr-xscripts/gui/shot4
1 files changed, 3 insertions, 1 deletions
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