Skip to content

Commit 63e229d

Browse files
author
kRHYME7
committed
fix: wallpaper.sh --set comment: #406 (comment) from issue #406
1 parent 253bfd1 commit 63e229d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Configs/.local/lib/hyde/wallpaper.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,12 @@ main() {
222222
Wall_Cache "${wallList[setIndex]}"
223223
;;
224224
s)
225-
if [ -n "${wallpaper_path}" ] && [ -f "${wallpaper_path}" ]; then
226-
get_hashmap "${wallpaper_path}"
225+
if [ -z "${wallpaper_path}" ] && [ ! -f "${wallpaper_path}" ]; then
226+
print_log -err "wallpaper" "Wallpaper not found: ${wallpaper_path}"
227+
exit 1
227228
fi
228-
Wall_Cache "${wallList[setIndex]}"
229+
get_hashmap "${wallpaper_path}"
230+
Wall_Cache
229231
;;
230232
g)
231233
if [ ! -e "${wallSet}" ]; then

0 commit comments

Comments
 (0)