fix deploy-dotfiles.zsh

This commit is contained in:
Martinez 2015-12-30 17:47:18 +01:00
parent 22ee295fe8
commit 63210a3f4d

View file

@ -3,15 +3,15 @@
SRCDIR="$1" SRCDIR="$1"
DESTDIR="$2" DESTDIR="$2"
pushd "${SRCDIR}" pushd "${SRCDIR}" > /dev/null
find . -type d | while read P find . -type d | while read P
do do
echo mkdir -p "${DESTDIR}/${P[3,-1]}" mkdir -p "${DESTDIR}/${P[3,-1]}"
done done
find . -type f | while read P find . -type f | while read P
do do
P="${P[3,-1]}" P="${P[3,-1]}"
echo cp -bv "${P}" "${DESTDIR}/${P}" cp -bv "${P}" "${DESTDIR}/${P}"
done done
popd popd > /dev/null