File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,22 @@ set -o pipefail
2424# The openapi-generator version used by this client
2525export OPENAPI_GENERATOR_COMMIT=" v4.3.0"
2626
27+ # OS X sed doesn't support "--version". This way we can tell if OS X sed is
28+ # used.
29+ if ! sed --version & > /dev/null; then
30+ # OS X sed and GNU sed aren't compatible with backup flag "-i". Namely
31+ # sed -i ... - does not work on OS X
32+ # sed -i'' ... - does not work on certain OS X versions
33+ # sed -i '' ... - does not work on GNU
34+ echo " >>> OS X sed detected, which may be incompatible with this script. Please install and use GNU sed instead:
35+ $ brew install gnu-sed
36+ $ brew info gnu-sed
37+ # Find the path to the installed gnu-sed and add it to your PATH. The default
38+ # is:
39+ # PATH=\" /Users/\$ USER/homebrew/opt/gnu-sed/libexec/gnubin:\$ PATH\" "
40+ exit 1
41+ fi
42+
2743SCRIPT_ROOT=$( dirname " ${BASH_SOURCE} " )
2844CLIENT_ROOT=" ${SCRIPT_ROOT} /../kubernetes"
2945CLIENT_VERSION=$( python " ${SCRIPT_ROOT} /constants.py" CLIENT_VERSION)
You can’t perform that action at this time.
0 commit comments