@@ -21,17 +21,29 @@ CURRENT_BRANCH=$(git symbolic-ref --short HEAD)
2121echo " current branch is $CURRENT_BRANCH "
2222git switch -C $UPDATE_BRANCH
2323
24- \c p -r --update=none $DEST /docs ./
25- \c p -r --update=none $DEST /infrastructure ./
24+ copy_folder_if_not_exists (){
25+ local FOLDER=$1
26+ echo " checking for folder $FOLDER "
27+ mkdir -p $DEST /$FOLDER && \
28+ \c p -r --update=none $DEST /$FOLDER ./ && \
29+ echo " Copied $FOLDER " \
30+ || echo " Not copying $FOLDER , already exist"
31+ }
32+ copy_folder_if_not_exists " .github"
33+ copy_folder_if_not_exists " docs"
34+ copy_folder_if_not_exists " infrastructure"
35+ copy_folder_if_not_exists " .vscode"
36+
2637\c p -rf $DEST /scripts ./
2738\c p -f $DEST /Makefile ./
2839\c p -f $DEST /.tool-versions ./
29- \c p --update=none $DEST /VERSION ./
3040\c p -f $DEST /.editorconfig ./
3141\c p -f $DEST /.gitattributes ./
3242\c p -f $DEST /.gitignore ./
3343\c p -f $DEST /.gitleaksignore ./
34-
44+ \c p --update=none $DEST /VERSION ./
45+ \c p --update=none $DEST /README.md ./
46+ \c p --update=none $DEST /LICENCE.md ./
3547
3648echo " $REPO template complete"
3749
0 commit comments