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