dcos / dcos-e2e

Spin up and manage DC/OS clusters in test environments
Apache License 2.0
60 stars 21 forks source link

illegal byte sequence when modifying the installer #1866

Open cpretzer opened 5 years ago

cpretzer commented 5 years ago

Running minidcos docker doctor results in an error message about the default version of sed on macOs Mojave which includes an URL to the Versioning, Support and API Stability page

That page includes instructions for modifying the installation script to change the sed behavior: $ sed \ -e 'H;1h;$!d;x' \ -e "s/sed '0,/sed '1,/" \ dcos_generate_config.sh > dcos_generate_config.sh.bak

When this command is executed, I see this error message: sed: RE error: illegal byte sequence

I was able to workaround this by setting the LANG=C environment variable when executing the script: LANG=C sed -e 'H;1h;$!d;x' -e "s/sed '0,/sed '1,/" dcos_generate_config.sh > dcos_generate_config.sh.bak

There may be something specific about my development environment that is causing sed to error this way, so I'm creating this issue so that other folks will have this workaround.