fix deploy-dotfiles.zsh
This commit is contained in:
parent
22ee295fe8
commit
63210a3f4d
1 changed files with 4 additions and 4 deletions
|
@ -3,15 +3,15 @@
|
|||
SRCDIR="$1"
|
||||
DESTDIR="$2"
|
||||
|
||||
pushd "${SRCDIR}"
|
||||
pushd "${SRCDIR}" > /dev/null
|
||||
find . -type d | while read P
|
||||
do
|
||||
echo mkdir -p "${DESTDIR}/${P[3,-1]}"
|
||||
mkdir -p "${DESTDIR}/${P[3,-1]}"
|
||||
done
|
||||
|
||||
find . -type f | while read P
|
||||
do
|
||||
P="${P[3,-1]}"
|
||||
echo cp -bv "${P}" "${DESTDIR}/${P}"
|
||||
cp -bv "${P}" "${DESTDIR}/${P}"
|
||||
done
|
||||
popd
|
||||
popd > /dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue