mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Fix auto project template errors for MacOS (#71)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user