Skip to content

Commit

Permalink
fix(SCRIPTS): installer recursive copy
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Mar 6, 2024
1 parent 89e5240 commit f236b40
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/libraries/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,8 @@ _installer_conditional_recursive_copy() {
log "DEBUG" "RECURSIVE COPY > Destination: '${CICD_TOOLS_INSTALL_TARGET_PATH}/${1}'"

if [[ ! -e "${CICD_TOOLS_INSTALL_TARGET_PATH}/${1}" ]]; then
if [[ -d "{{cookiecutter.project_slug}}/${1}" ]]; then
set -x
mkdir -p "${CICD_TOOLS_INSTALL_TARGET_PATH}/${1}"
{ set +x; } 2> /dev/null
fi
mkdir -p "$(dirname "${CICD_TOOLS_INSTALL_TARGET_PATH}/${1}")"
set -x
mkdir -p "$(dirname "${CICD_TOOLS_INSTALL_TARGET_PATH}/${1}")"
cp -rp "{{cookiecutter.project_slug}}/${1}" "${CICD_TOOLS_INSTALL_TARGET_PATH}/${1}"
{ set +x; } 2> /dev/null
else
Expand Down

0 comments on commit f236b40

Please sign in to comment.