diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-08 16:36:13 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-08 16:36:13 +0200 |
commit | e05e81dceb50d408ae1b0dab5e713403f6fe230a (patch) | |
tree | a6139c8b7c8881ae450e971b44e20531e8f70d1e | |
parent | fc99e76d7cb26bc2f32109b8239e76b8404029b4 (diff) |
added diff to favwal and fixed some issues
-rwxr-xr-x | bin/guiscripts/favwal | 6 |
1 files changed, 4 insertions, 2 deletions
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" |