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"