diff --git a/package_name/utils.py b/package_name/utils.py index 5a49488..13fad6d 100644 --- a/package_name/utils.py +++ b/package_name/utils.py @@ -1,8 +1,8 @@ """ Various utility functions, for use outside of the `package_name` module. -Do not add any functions here that gets imported into the `synthetic_consumers` module. -If you need to add logic that gets imported into the `synthetic_consumers` module, +Do not add any functions here that gets imported into the `package_name` module. +If you need to add logic that gets imported into the `package_name` module, add it to another file in this directory where it logically belongs. If none such file exists, create a new file in this directory. diff --git a/setup.sh b/setup.sh index 4433b07..9904d21 100644 --- a/setup.sh +++ b/setup.sh @@ -75,7 +75,13 @@ name=$(basename "$(pwd)" | tr '-' '_') find . -type f -not -path '*/\.*' -not -name 'setup.sh' -exec sh -c ' if file -b --mime-type "$1" | grep -q "^text/"; then - sed -i "" "s/$2/$3/g" "$1" + if [ "$(uname)" = "Darwin" ]; then + # macOS (BSD sed) + sed -i "" "s/$2/$3/g" "$1" + else + # Linux (GNU sed) + sed -i "s/$2/$3/g" "$1" + fi fi ' sh {} "$current_name" "$name" \;