wallpapers and such

This commit is contained in:
Stuce 2025-07-13 09:51:07 +02:00
parent 418e090ce6
commit cb3663cddb
8 changed files with 122 additions and 17 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
sources=("$PWD/config/" "$PWD/etc/")
targets=("$HOME/.config/" "/etc/")
sources=("$PWD/config/" "$PWD/etc/" "$PWD/home/")
targets=("$HOME/.config/" "/etc/" "$HOME/")
length=${#sources[@]}
# TODO: need to address need to run as sudo to add symlink to certain folders, maybe ask in outer loop when sudo is needed and set a variable
@ -10,7 +10,7 @@ for ((i = 0; i < length; i++)); do
source=${sources[i]}
target=${targets[i]}
for folder in $(ls $source); do
for folder in $(ls $source -a); do
if [ -e "$target$folder" ]; then
echo "The file '$target$folder' exists."
else