File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,17 +85,17 @@ function symlink_python_to_python3 {
85
85
which_pip=" $( command -v pip3) "
86
86
87
87
# symlink python to python3
88
- printf " \n### ln -s -f %s %s\n" " ${which_python} " " ${which_python::- 3 } "
89
- ln -s -f " ${which_python} " " ${which_python::- 3 } "
88
+ printf " \n### ln --symbolic --force %s %s\n" " ${which_python} " " ${which_python::- 1 } "
89
+ ln --symbolic --force " ${which_python} " " ${which_python::- 1 } "
90
90
91
91
# symlink pip to pip3 if no pip exists or it is a different version than pip3
92
92
if [[ -n " $( command -v pip) " ]]; then
93
93
if [[ " $( pip --version) " = " $( pip3 --version) " ]]; then
94
94
return 0
95
95
fi
96
96
fi
97
- printf " \n### ln -s -f %s %s\n" " ${which_pip} " " ${which_pip::- 1} "
98
- ln -s -f " ${which_pip} " " ${which_pip::- 1} "
97
+ printf " \n### ln --symbolic --force %s %s\n" " ${which_pip} " " ${which_pip::- 1} "
98
+ ln --symbolic --force " ${which_pip} " " ${which_pip::- 1} "
99
99
return 0
100
100
}
101
101
You can’t perform that action at this time.
0 commit comments