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 1
1
"""
2
2
Various utility functions, for use outside of the `package_name` module.
3
3
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,
6
6
add it to another file in this directory where it logically belongs. If none such file
7
7
exists, create a new file in this directory.
8
8
Original file line number Diff line number Diff line change @@ -75,7 +75,13 @@ name=$(basename "$(pwd)" | tr '-' '_')
75
75
76
76
find . -type f -not -path ' */\.*' -not -name ' setup.sh' -exec sh -c '
77
77
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
79
85
fi
80
86
' sh {} " $current_name " " $name " \;
81
87
You can’t perform that action at this time.
0 commit comments