File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11"""
22Various utility functions, for use outside of the `package_name` module.
33
4- Do not add any functions here that gets imported into the `synthetic_consumers ` module.
5- If you need to add logic that gets imported into the `synthetic_consumers ` module,
4+ Do not add any functions here that gets imported into the `package_name ` module.
5+ If you need to add logic that gets imported into the `package_name ` module,
66add it to another file in this directory where it logically belongs. If none such file
77exists, create a new file in this directory.
88
Original file line number Diff line number Diff line change @@ -75,7 +75,13 @@ name=$(basename "$(pwd)" | tr '-' '_')
7575
7676find . -type f -not -path ' */\.*' -not -name ' setup.sh' -exec sh -c '
7777 if file -b --mime-type "$1" | grep -q "^text/"; then
78- sed -i "" "s/$2/$3/g" "$1"
78+ if [ "$(uname)" = "Darwin" ]; then
79+ # macOS (BSD sed)
80+ sed -i "" "s/$2/$3/g" "$1"
81+ else
82+ # Linux (GNU sed)
83+ sed -i "s/$2/$3/g" "$1"
84+ fi
7985 fi
8086' sh {} " $current_name " " $name " \;
8187
You can’t perform that action at this time.
0 commit comments