Skip to content

Commit

Permalink
refactor(Makefile): simplify 'test-init-project' and 'test-init-proje…
Browse files Browse the repository at this point in the history
…ct-force' commands
  • Loading branch information
entelecheia committed Aug 24, 2023
1 parent f0a5386 commit 8c4bfff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ reinit-project-force: install-copier ## initialize the project ignoring existing
@bash -c 'args=(); while IFS= read -r file; do args+=("--skip" "$$file"); done < .copierignore; copier copy "$${args[@]}" --answers-file .copier-docker-config.yaml --trust --force --vcs-ref=HEAD . .'

test-init-project: install-copier ## test initializing the project to a temporary directory
@bash -c 'args=(); while IFS= read -r file; do args+=("--skip" "$$file"); done < .copierignore; copier copy "$${args[@]}" --answers-file .copier-docker-config.yaml --trust --vcs-ref=HEAD . tmp'
@copier copy --answers-file .copier-docker-config.yaml --trust --vcs-ref=HEAD . tmp
@rm -rf tmp/.git

test-init-project-force: install-copier ## test initializing the project to a temporary directory forcing overwrite
@bash -c 'args=(); while IFS= read -r file; do args+=("--skip" "$$file"); done < .copierignore; copier copy "$${args[@]}" --answers-file .copier-docker-config.yaml --trust --force --vcs-ref=HEAD . tmp'
@copier copy --answers-file .copier-docker-config.yaml --trust --force --vcs-ref=HEAD . tmp
@rm -rf tmp/.git
##@ Docker

Expand Down

0 comments on commit 8c4bfff

Please sign in to comment.