fix directory copying

This commit is contained in:
2024-11-05 11:29:15 -05:00
parent 84bc4ef53f
commit c12bc7b98f

View File

@@ -15,10 +15,18 @@ dotfiles=(
Xresources
)
for f in "${dotfiles[@]}"; do
# don't cp pkgs directory over
if [ "$f" == "pkgs" ]; then
continue
fi
# merge directories if already exists
if [ -d ~/.$f ]; then
echo "directory $f detected. merging..."
cp -rv $f/* ~/.$f/
else
cp -rv $f ~/."$f"
fi
done
# install packages