wallpapers and such
This commit is contained in:
parent
418e090ce6
commit
cb3663cddb
8 changed files with 122 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue