summaryrefslogtreecommitdiff
path: root/scripts/swall
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-07-26 21:35:40 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-07-26 21:35:40 +0400
commitc1efcb86d5eb36c1942c162e0d0b5ab5896d23b5 (patch)
tree1a40c9b359b46768fc1686decaf5344931cb298d /scripts/swall
parent93e5e8870e9099c67a7ba17df3ea6e4faa70fad0 (diff)
run function updated in scripts
Diffstat (limited to 'scripts/swall')
-rwxr-xr-xscripts/swall6
1 files changed, 3 insertions, 3 deletions
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}"