Fix auto project template errors for MacOS (#71)

This commit is contained in:
kclowes
2022-12-08 15:19:05 -07:00
committed by GitHub
parent be0106907f
commit af2dfa6560
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"