Skip to content
Browse files

fix script. create vendor _attachments in right path

  • Loading branch information...
1 parent 3e5333b commit 1d6b96a0535364c61b356d68e08161581339603f @benoitc benoitc committed Mar 27, 2009
Showing with 6 additions and 5 deletions.
  1. +6 −5 python/couchapp/_external/git.sh
View
11 python/couchapp/_external/git.sh
@@ -15,9 +15,9 @@ if [ $1 = "update" ]; then
if [ -r $3 ]; then
rm -rvf $3
fi
-
+
if [ -r $tempfile/vendor ]; then
- for f in $(find $tempfile/vendor -type d); do
+ for f in $(find $tempfile/vendor -type d -depth 1); do
if [ $f != "$tempfile/vendor" ]; then
cp -vr $f $4
fi
@@ -26,12 +26,13 @@ if [ $1 = "update" ]; then
fi
else
if [ -r $tempfile/vendor ]; then
- for f in $(find $tempfile/vendor -type d); do
+ ls $tempfile/vendor
+ for f in $(find $tempfile/vendor -type d -depth 1); do
if [ $f != "$tempfile/vendor" ]; then
echo "$2" > $f/.new
- cp -vr $f $3
+ cp -rv $f $3
fi
done
fi
-fi
+fi

0 comments on commit 1d6b96a

Please sign in to comment.
Something went wrong with that request. Please try again.