File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
operations/_scripts/generate Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ function helm_move_content_prepend() {
174
174
source_folder=" $1 "
175
175
destination_folder=" $2 "
176
176
number=" $3 "
177
+
178
+ echo " tree source_folder ($source_folder )"
179
+ tree " $source_folder "
180
+
177
181
find " $source_folder " -maxdepth 1 -type d -not -name " ." -path " $source_folder /*" | while read chart_folder; do
178
182
# Move files from source folder to destination folder
179
183
chart_name=$( basename " $chart_folder " )
@@ -201,8 +205,8 @@ function helm_move_content_prepend() {
201
205
done
202
206
# Move remaining folders (if they exist) and exclude the . folder
203
207
find " $chart_folder " -maxdepth 1 -type d -not -name " ." -path " $chart_folder /*" | while read folder; do
204
- echo " mv $folder $destination_folder /$chart_name /. "
205
- mv " $folder " " $destination_folder /$chart_name /. "
208
+ echo " rsync -av $folder $destination_folder /$chart_name /"
209
+ rsync -av " $folder " " $destination_folder /$chart_name /"
206
210
done
207
211
echo " Printing chart result"
208
212
tree " $destination_folder /$chart_name "
You can’t perform that action at this time.
0 commit comments