From bb4c8559a6a36aaac56bf26b89d7c0fd7b5ae411 Mon Sep 17 00:00:00 2001 From: "SilverAg.L" Date: Thu, 5 Feb 2026 05:17:54 +0800 Subject: [PATCH] chbg fix --- bin/chbg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/chbg b/bin/chbg index cbbcb2c..6f0491b 100755 --- a/bin/chbg +++ b/bin/chbg @@ -120,7 +120,7 @@ echo "Selected: $randomimage" if [ -f "$randomimage" ]; then set_wallpaper "$randomimage" - return + exit 0 fi tmpfile=$(mktemp) @@ -131,6 +131,6 @@ elif command -v wget >/dev/null 2>&1; then wget -qO "$tmpfile" "$randomimage" else echo "!) Unable to fetch image without 'curl' or 'wget'." >&2 - return 2 + exit 2 fi set_wallpaper "$tmpfile"