diff --git a/.project-template/fill_template_vars.sh b/.project-template/fill_template_vars.sh index 250f551..157c89d 100755 --- a/.project-template/fill_template_vars.sh +++ b/.project-template/fill_template_vars.sh @@ -33,7 +33,7 @@ _replace() { local find_cmd=(find "$PROJECT_ROOT" ! -perm -u=x ! -path '*/.git/*' ! -path '*/venv*/*' -type f) if [[ $(uname) == Darwin ]]; then - "${find_cmd[@]}" -exec sed -i '' "$1" {} + + LC_ALL=C "${find_cmd[@]}" -exec sed -i '' "$1" {} + else "${find_cmd[@]}" -exec sed -i "$1" {} + fi diff --git a/.project-template/refill_template_vars.sh b/.project-template/refill_template_vars.sh index 6e7943f..70832d3 100755 --- a/.project-template/refill_template_vars.sh +++ b/.project-template/refill_template_vars.sh @@ -1,2 +1,2 @@ -TEMPLATE_DIR=$(dirname $(readlink -f "$0")) +TEMPLATE_DIR=$(dirname "$0") <"$TEMPLATE_DIR/template_vars.txt" "$TEMPLATE_DIR/fill_template_vars.sh"