Skip to content

Commit

Permalink
Add directory for template in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
rehan892 committed Dec 23, 2024
1 parent 033186f commit a6dcf50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scaf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ DEFAULT_REPO_URL="https://github.com/rehan892/test-scaf-templates/"

# Default template to use if none provided
DEFAULT_DIRECTORY="templates/sixfeetup-fullstack"
DIRECTORY_OPTION="--directory=\"$DEFAULT_DIRECTORY\""

# Ensure at least one argument is provided (for project_slug)
if [ $# -lt 1 ]; then
Expand Down Expand Up @@ -239,7 +238,7 @@ docker run --rm $DOCKER_RUN_OPTIONS -v "$(pwd):/home/scaf/out" \
cookiecutter \
$COOKIECUTTER_OPTIONS \
$REPO_URL \
$DIRECTORY_OPTION \
--directory="$DEFAULT_DIRECTORY" \
project_slug="$COOKIECUTTER_SLUG" \
_challenge="$SCAF_CHALLENGE"

Expand Down

0 comments on commit a6dcf50

Please sign in to comment.