From c1efcb86d5eb36c1942c162e0d0b5ab5896d23b5 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Fri, 26 Jul 2024 21:35:40 +0400 Subject: run function updated in scripts --- scripts/swall | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/swall') diff --git a/scripts/swall b/scripts/swall index 0b0a088..1f231cd 100755 --- a/scripts/swall +++ b/scripts/swall @@ -24,6 +24,8 @@ run() { if ! ${1} > /dev/null 2>&1; then err "${2}" fi + + [ -n "${3}" ] && echo "${3}" exit 0 } @@ -70,6 +72,4 @@ fi [ -z "${image}" ] && err "${0}: No image file found" -run "xwallpaper --zoom ${image}" "${0}: Failed to set wallpaper" - -echo "${image}" +run "xwallpaper --zoom ${image}" "${0}: Failed to set wallpaper" "${image}" -- cgit v1.2.3