File tree Expand file tree Collapse file tree 4 files changed +8
-44
lines changed Expand file tree Collapse file tree 4 files changed +8
-44
lines changed Original file line number Diff line number Diff line change @@ -29,19 +29,10 @@ mkdir -p $BUILD_DIR
2929
3030# Copy base template first
3131echo " Copying base application..."
32- rsync -a --exclude= ' .git ' --exclude= ' node_modules ' $FULL_BASE_DIR $BUILD_APP_DIR
32+ cp -R $FULL_BASE_DIR $BUILD_APP_DIR
3333
3434# Copy version-specific files (overrides base template)
3535echo " Copying application version..."
36- rsync -a --exclude=' .git' --exclude=' node_modules' $FULL_APP_DIR $BUILD_APP_DIR
37-
38- # Remove files that don't exist in either source directory
39- echo " Cleaning up removed files..."
40- find $BUILD_APP_DIR -type f -not -path " */node_modules/*" -not -path " */.git/*" | while read file; do
41- rel_path=${file# $BUILD_APP_DIR }
42- if [ ! -f " ${FULL_BASE_DIR}${rel_path} " ] && [ ! -f " ${FULL_APP_DIR}${rel_path} " ]; then
43- rm " $file "
44- fi
45- done
36+ cp -R $FULL_APP_DIR $BUILD_APP_DIR
4637
4738echo " Copied test app files for ${APP_DIR} "
Original file line number Diff line number Diff line change @@ -29,19 +29,10 @@ mkdir -p $BUILD_DIR
2929
3030# Copy base template first
3131echo " Copying base application..."
32- rsync -a --exclude= ' .git ' --exclude= ' node_modules ' $FULL_BASE_DIR $BUILD_APP_DIR
32+ cp -R $FULL_BASE_DIR $BUILD_APP_DIR
3333
3434# Copy version-specific files (overrides base template)
3535echo " Copying application version..."
36- rsync -a --exclude=' .git' --exclude=' node_modules' $FULL_APP_DIR $BUILD_APP_DIR
37-
38- # Remove files that don't exist in either source directory
39- echo " Cleaning up removed files..."
40- find $BUILD_APP_DIR -type f -not -path " */node_modules/*" -not -path " */.git/*" | while read file; do
41- rel_path=${file# $BUILD_APP_DIR }
42- if [ ! -f " ${FULL_BASE_DIR}${rel_path} " ] && [ ! -f " ${FULL_APP_DIR}${rel_path} " ]; then
43- rm " $file "
44- fi
45- done
36+ cp -R $FULL_APP_DIR $BUILD_APP_DIR
4637
4738echo " Copied test app files for ${APP_DIR} "
Original file line number Diff line number Diff line change @@ -29,19 +29,10 @@ mkdir -p $BUILD_DIR
2929
3030# Copy base template first
3131echo " Copying base application..."
32- rsync -a --exclude= ' .git ' --exclude= ' node_modules ' $FULL_BASE_DIR $BUILD_APP_DIR
32+ cp -R $FULL_BASE_DIR $BUILD_APP_DIR
3333
3434# Copy version-specific files (overrides base template)
3535echo " Copying application version..."
36- rsync -a --exclude=' .git' --exclude=' node_modules' $FULL_APP_DIR $BUILD_APP_DIR
37-
38- # Remove files that don't exist in either source directory
39- echo " Cleaning up removed files..."
40- find $BUILD_APP_DIR -type f -not -path " */node_modules/*" -not -path " */.git/*" | while read file; do
41- rel_path=${file# $BUILD_APP_DIR }
42- if [ ! -f " ${FULL_BASE_DIR}${rel_path} " ] && [ ! -f " ${FULL_APP_DIR}${rel_path} " ]; then
43- rm " $file "
44- fi
45- done
36+ cp -R $FULL_APP_DIR $BUILD_APP_DIR
4637
4738echo " Copied test app files for ${APP_DIR} "
Original file line number Diff line number Diff line change @@ -29,19 +29,10 @@ mkdir -p $BUILD_DIR
2929
3030# Copy base template first
3131echo " Copying base application..."
32- rsync -a --exclude= ' .git ' --exclude= ' node_modules ' $FULL_BASE_DIR $BUILD_APP_DIR
32+ cp -R $FULL_BASE_DIR $BUILD_APP_DIR
3333
3434# Copy version-specific files (overrides base template)
3535echo " Copying application version..."
36- rsync -a --exclude=' .git' --exclude=' node_modules' $FULL_APP_DIR $BUILD_APP_DIR
37-
38- # Remove files that don't exist in either source directory
39- echo " Cleaning up removed files..."
40- find $BUILD_APP_DIR -type f -not -path " */node_modules/*" -not -path " */.git/*" | while read file; do
41- rel_path=${file# $BUILD_APP_DIR }
42- if [ ! -f " ${FULL_BASE_DIR}${rel_path} " ] && [ ! -f " ${FULL_APP_DIR}${rel_path} " ]; then
43- rm " $file "
44- fi
45- done
36+ cp -R $FULL_APP_DIR $BUILD_APP_DIR
4637
4738echo " Copied test app files for ${APP_DIR} "
You can’t perform that action at this time.
0 commit comments