Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d0e36819
Commit
d0e36819
authored
Jul 07, 2016
by
Lorrin Nelson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on OS X when GNU sed is present.
See #20147, which fixed it when system default BSD sed was present but did not account for possibiliyt of GNU sed on OS X.
parent
939b9848
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
common.sh
build/common.sh
+7
-3
No files found.
build/common.sh
View file @
d0e36819
...
...
@@ -242,11 +242,15 @@ function kube::build::is_osx() {
[[
"
$(
uname
)
"
==
"Darwin"
]]
}
function
kube::build::is_gnu_sed
()
{
[[
$(
sed
--version
2>&1
)
==
*
GNU
*
]]
}
function
kube::build::update_dockerfile
()
{
if
kube::build::is_osx
;
then
sed_opts
=(
-i
''
)
else
if
kube::build::is_gnu_sed
;
then
sed_opts
=(
-i
)
else
sed_opts
=(
-i
''
)
fi
sed
"
${
sed_opts
[@]
}
"
"s/KUBE_BUILD_IMAGE_CROSS_TAG/
${
KUBE_BUILD_IMAGE_CROSS_TAG
}
/"
"
${
LOCAL_OUTPUT_BUILD_CONTEXT
}
/Dockerfile"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment