Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 496cda5

Browse files
author
Ian Hays
authored
Merge pull request #17561 from ianhays/1.1_tool_over
[1.1] Replace tool-runtime binaries with portable linux binaries
2 parents abfd2cd + 1968d1e commit 496cda5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

init-tools.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,11 @@ if [ ! -e $__INIT_TOOLS_DONE_MARKER ]; then
4646
if [ "$__DISTRO_NAME" == 'ubuntu.16.04' ] ||
4747
[ "$__DISTRO_NAME" == 'ubuntu.16.10' ] ||
4848
[ "$__DISTRO_NAME" == 'ubuntu.18.04' ] ||
49-
[ "$__DISTRO_NAME" == 'debian.8' ] ||
5049
[ "$__DISTRO_NAME" == 'fedora.23' ] ||
5150
[ "$__DISTRO_NAME" == 'fedora.24' ] ||
5251
[ "$__DISTRO_NAME" == 'fedora.27' ] ||
5352
[ "$__DISTRO_NAME" == 'opensuse.13.2' ] ||
54-
[ "$__DISTRO_NAME" == 'opensuse.42.1' ] ||
55-
[ "$__DISTRO_NAME" == 'opensuse.42.3' ] ; then
53+
[ "$__DISTRO_NAME" == 'opensuse.42.1' ]; then
5654
__PKG_RID=$__DISTRO_NAME
5755
fi
5856
fi
@@ -113,6 +111,11 @@ if [ ! -e $__INIT_TOOLS_DONE_MARKER ]; then
113111
exit $?
114112
fi
115113

114+
# Replace the binaries restored by the tool runtime script with the portable binaries
115+
if [ "$__PKG_RID" == "linux" ]; then
116+
cp -r $__DOTNET_PATH/shared/Microsoft.NETCore.App/*/* $__TOOLRUNTIME_DIR
117+
fi
118+
116119
touch $__INIT_TOOLS_DONE_MARKER
117120
echo "Done initializing tools."
118121
else

0 commit comments

Comments
 (0)