Skip to content

Commit af2dfa6

Browse files
authored
Fix auto project template errors for MacOS (ethereum#71)
1 parent be01069 commit af2dfa6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.project-template/fill_template_vars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ _replace() {
3333
local find_cmd=(find "$PROJECT_ROOT" ! -perm -u=x ! -path '*/.git/*' ! -path '*/venv*/*' -type f)
3434

3535
if [[ $(uname) == Darwin ]]; then
36-
"${find_cmd[@]}" -exec sed -i '' "$1" {} +
36+
LC_ALL=C "${find_cmd[@]}" -exec sed -i '' "$1" {} +
3737
else
3838
"${find_cmd[@]}" -exec sed -i "$1" {} +
3939
fi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
TEMPLATE_DIR=$(dirname $(readlink -f "$0"))
1+
TEMPLATE_DIR=$(dirname "$0")
22
<"$TEMPLATE_DIR/template_vars.txt" "$TEMPLATE_DIR/fill_template_vars.sh"

0 commit comments

Comments
 (0)