We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf276f commit d4d14e4Copy full SHA for d4d14e4
devops/install/dotnet-install.sh
@@ -984,9 +984,12 @@ get_cp_options() {
984
985
if [ "$override" = false ]; then
986
# cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead
987
- # override_switch="-n"
988
- override_switch="--update=none"
989
-
+ if [ "$normalized_os" == "osx" ]; then
+ override_switch="-n"
+ else
990
+ override_switch="--update=none"
991
+ fi;
992
+
993
# create temporary files to check if 'cp -u' is supported
994
tmp_dir="$(mktemp -d)"
995
tmp_file="$tmp_dir/testfile"
0 commit comments