summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-07-26 15:40:06 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-07-26 15:40:06 +0400
commit3c3c118fcc1b1e883fb387e23f0d34e6d2128324 (patch)
tree3566c9dba5ef9d74afc357915f5e8d8975b17b3a
parent985f891333c7c06577e793a97c1bb5f787cfb398 (diff)
swall: error output improved
-rwxr-xr-xscripts/swall4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/swall b/scripts/swall
index 3b48836..34f5ec5 100755
--- a/scripts/swall
+++ b/scripts/swall
@@ -27,7 +27,7 @@ if ! command -v xwallpaper > /dev/null 2>&1; then
fi
if [ $# = 0 ]; then
- input="${HOME}/.config/wallpapers"
+ input="${HOME}/.config/wallpapers"
elif [ $# != 1 ] && [ $# != 2 ]; then
err "${0}: Invalid usage
Try '$0 -h' for help."
@@ -64,7 +64,7 @@ if [ -n "${waldir}" ]; then
| shuf -n 1 )
fi
-[ -z ${image} ] && err "No image file"
+[ -z ${image} ] && err "${0}: No image file found"
run "xwallpaper --zoom ${image}" \
"${0}: Failed to set wallpaper"