fix directory copying
This commit is contained in:
10
install
10
install
@@ -15,10 +15,18 @@ dotfiles=(
|
|||||||
Xresources
|
Xresources
|
||||||
)
|
)
|
||||||
for f in "${dotfiles[@]}"; do
|
for f in "${dotfiles[@]}"; do
|
||||||
|
# don't cp pkgs directory over
|
||||||
if [ "$f" == "pkgs" ]; then
|
if [ "$f" == "pkgs" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
cp -rv $f ~/."$f"
|
|
||||||
|
# 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
|
done
|
||||||
|
|
||||||
# install packages
|
# install packages
|
||||||
|
|||||||
Reference in New Issue
Block a user