From e05e81dceb50d408ae1b0dab5e713403f6fe230a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 16:36:13 +0200 Subject: added diff to favwal and fixed some issues --- bin/guiscripts/favwal | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/guiscripts/favwal') diff --git a/bin/guiscripts/favwal b/bin/guiscripts/favwal index f27123d..94ee709 100755 --- a/bin/guiscripts/favwal +++ b/bin/guiscripts/favwal @@ -1,6 +1,8 @@ #!/bin/sh -pics=$(xdg-user-dir PICTURES")" +pics="$(xdg-user-dir PICTURES)" mkdir -p "${pics:=$HOME/pics}/favorites" -wal="$(realpath "pics/wallpaper")" +wal="$(realpath "$pics/wallpaper")" +diff "$wal" "$pics/favorites/$(realpath "$wal" | xargs basename)" && + exit cp "$wal" "$pics/favorites" echo "$wal" -- cgit v1.2.3