From 8150786aa86d0968ea270bd0c2cef2f074747f52 Mon Sep 17 00:00:00 2001 From: Mauko Quiroga Date: Wed, 23 Oct 2024 15:48:45 +0200 Subject: [PATCH] fix: correct string decoding order --- src/first_time_setup/setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/first_time_setup/setup.sh b/src/first_time_setup/setup.sh index f2dc731..5d73e87 100644 --- a/src/first_time_setup/setup.sh +++ b/src/first_time_setup/setup.sh @@ -13,7 +13,7 @@ source 'src/first_time_setup/utils/url.sh' # @arg $1 The jurisdiction name. setup::name_label() { local name="${1}" - local -r fx=(string::lower string::decode string::sanitise string::trim) + local -r fx=(string::decode string::lower string::sanitise string::trim) local fn for fn in "${fx[@]}"; do name=$("${fn}" "${name}"); done echo "${name}" @@ -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 Makefile pyproject.toml CONTRIBUTING.md + README.md Taskfile.yaml pyproject.toml CONTRIBUTING.md # shellcheck disable=SC2086 sed -i.template "s|extension_template|${2}|g" \ - README.md pyproject.toml Makefile MANIFEST.in ${4} + README.md pyproject.toml Taskfile.yaml 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