mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-06 21:33:25 +03:00
Double quote array expansions to avoid re-splitting elements.
If one argument includes spaces, the expansion will be wrong. Add double quotes to avoid that. https://github.com/koalaman/shellcheck/wiki/SC2068
This commit is contained in:
parent
a808aca29b
commit
9e44a205c3
|
@ -11,7 +11,7 @@ mkdir -p .cache/bare
|
||||||
cd .cache/bare
|
cd .cache/bare
|
||||||
|
|
||||||
# create the project using the default settings in cookiecutter.json
|
# create the project using the default settings in cookiecutter.json
|
||||||
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=n $@
|
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=n "$@"
|
||||||
cd my_awesome_project
|
cd my_awesome_project
|
||||||
|
|
||||||
# Install OS deps
|
# Install OS deps
|
||||||
|
|
|
@ -11,7 +11,7 @@ mkdir -p .cache/docker
|
||||||
cd .cache/docker
|
cd .cache/docker
|
||||||
|
|
||||||
# create the project using the default settings in cookiecutter.json
|
# create the project using the default settings in cookiecutter.json
|
||||||
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y $@
|
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y "$@"
|
||||||
cd my_awesome_project
|
cd my_awesome_project
|
||||||
|
|
||||||
# Lint by running pre-commit on all files
|
# Lint by running pre-commit on all files
|
||||||
|
|
Loading…
Reference in New Issue
Block a user