From 3c3c118fcc1b1e883fb387e23f0d34e6d2128324 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Fri, 26 Jul 2024 15:40:06 +0400 Subject: swall: error output improved --- scripts/swall | 4 ++-- 1 file 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" -- cgit v1.2.3