Skip to content

Commit

Permalink
Fix auto project template errors for MacOS (ethereum#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes authored Dec 8, 2022
1 parent be01069 commit af2dfa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .project-template/fill_template_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .project-template/refill_template_vars.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit af2dfa6

Please sign in to comment.