That reminds me of a really horrible afternoon in pre-gpt devops when I learned to add

```bash

if [[ $OSTYPE == “darwin” ]]; then

  alias sed=gsed
fi

  ```
Assuming you have run `brew install gnutools` on your Mac that should enable local dev for scripts that run on Linux. Apple’s bsd sed fork is strange.