Skip to content

Commit

Permalink
fix: minor bugs in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Oct 22, 2024
1 parent 3593ac2 commit c339f9f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions bashdep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ readonly DEPENDENCIES=(
)

# Load, configure and run bashdep
# shellcheck disable=SC1091
source lib/bashdep
bashdep::setup dir="lib" silent=false
bashdep::install "${DEPENDENCIES[@]}"
8 changes: 4 additions & 4 deletions first-time-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ MSG
# @description Define the prompt for the jurisdiction name.
msg::prompt_name() {
cat <<MSG
The name of the jurisdiction (usually a country, e.g. Île-d'Yeu, Val-d'Isère...)
you will model the rules of:
The name of the jurisdiction (usually a city or a region, e.g. Île-d'Yeu,
Val-d'Isère...) you will model the rules of:
MSG
}

Expand Down Expand Up @@ -409,10 +409,10 @@ setup::first_commit() {
# @arg $4 The list of files to replace.
setup::replace_references() {
sed -i.template "s|openfisca-extension_template|openfisca-${1}|g" \
README.md Taskfile.yaml pyproject.toml CONTRIBUTING.md
README.md Makefile pyproject.toml CONTRIBUTING.md
# shellcheck disable=SC2086
sed -i.template "s|extension_template|${2}|g" \
README.md pyproject.toml Taskfile.yaml MANIFEST.in ${4}
README.md pyproject.toml Makefile MANIFEST.in ${4}
sed -i.template "s|Extension-Template|${3}|g" \
README.md pyproject.toml .github/PULL_REQUEST_TEMPLATE.md CONTRIBUTING.md
find . -name "*.template" -type f -delete
Expand Down
4 changes: 2 additions & 2 deletions src/first_time_setup/messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ MSG
# @description Define the prompt for the jurisdiction name.
msg::prompt_name() {
cat <<MSG
The name of the jurisdiction (usually a country, e.g. Île-d'Yeu, Val-d'Isère...)
you will model the rules of:
The name of the jurisdiction (usually a city or a region, e.g. Île-d'Yeu,
Val-d'Isère...) you will model the rules of:
MSG
}

Expand Down
4 changes: 2 additions & 2 deletions src/first_time_setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ setup::first_commit() {
# @arg $4 The list of files to replace.
setup::replace_references() {
sed -i.template "s|openfisca-extension_template|openfisca-${1}|g" \
README.md Taskfile.yaml pyproject.toml CONTRIBUTING.md
README.md Makefile pyproject.toml CONTRIBUTING.md
# shellcheck disable=SC2086
sed -i.template "s|extension_template|${2}|g" \
README.md pyproject.toml Taskfile.yaml MANIFEST.in ${4}
README.md pyproject.toml Makefile MANIFEST.in ${4}
sed -i.template "s|Extension-Template|${3}|g" \
README.md pyproject.toml .github/PULL_REQUEST_TEMPLATE.md CONTRIBUTING.md
find . -name "*.template" -type f -delete
Expand Down

0 comments on commit c339f9f

Please sign in to comment.