File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,22 @@ set -o pipefail
24
24
# The openapi-generator version used by this client
25
25
export OPENAPI_GENERATOR_COMMIT=" v4.3.0"
26
26
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
+
27
43
SCRIPT_ROOT=$( dirname " ${BASH_SOURCE} " )
28
44
CLIENT_ROOT=" ${SCRIPT_ROOT} /../kubernetes"
29
45
CLIENT_VERSION=$( python " ${SCRIPT_ROOT} /constants.py" CLIENT_VERSION)
You can’t perform that action at this time.
0 commit comments