mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Use portable ln -snf instead of -sTf
This commit is contained in:
parent
8675adf138
commit
f2f3a459d8
@ -266,7 +266,7 @@ kube::golang::create_gopath_tree() {
|
||||
|
||||
# TODO: This symlink should be relative.
|
||||
if [[ ! -e "${go_pkg_dir}" || "$(readlink ${go_pkg_dir})" != "${KUBE_ROOT}" ]]; then
|
||||
ln -sTf "${KUBE_ROOT}" "${go_pkg_dir}"
|
||||
ln -snf "${KUBE_ROOT}" "${go_pkg_dir}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user