mirror of
https://github.com/metabrainz/musicbrainz-server.git
synced 2025-03-14 10:15:22 +00:00
On macOS, since the defaut BSD `sed` doesn’t have the option `-z`, this snippet (already used in some other of our repositories too) is requiring GNU `sed` to be installed as `gsed` and make use of it.
11 lines
215 B
Bash
11 lines
215 B
Bash
if [[ $OSTYPE == darwin* ]]
|
|
then
|
|
if ! command -v gsed &> /dev/null
|
|
then
|
|
echo 'You must install gnu-sed (e.g. with Homebrew) to run this script.'
|
|
exit 1
|
|
fi
|
|
alias sed=gsed
|
|
shopt -s expand_aliases
|
|
fi
|