From a6dcf5062939992d504106019974dfcf9c7ceb28 Mon Sep 17 00:00:00 2001 From: Muhammad Rehan Date: Mon, 23 Dec 2024 20:22:09 +0500 Subject: [PATCH] Add directory for template in docker build --- scaf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scaf b/scaf index 87f740d..d5e2356 100755 --- a/scaf +++ b/scaf @@ -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 @@ -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"