aboutsummaryrefslogtreecommitdiff
path: root/src/dotnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotnet')
-rw-r--r--src/dotnet/devcontainer-feature.json2
-rwxr-xr-xsrc/dotnet/install.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dotnet/devcontainer-feature.json b/src/dotnet/devcontainer-feature.json
index 4c6f9d5..b7aecaa 100644
--- a/src/dotnet/devcontainer-feature.json
+++ b/src/dotnet/devcontainer-feature.json
@@ -1,6 +1,6 @@
{
"id": "dotnet",
- "version": "1.0.2",
+ "version": "1.0.3",
"name": "Dotnet CLI",
"description": "Installs the .NET CLI. Provides option of installing sdk or runtime, and option of versions to install. Uses latest version of .NET sdk as defaults to install.",
"options": {
diff --git a/src/dotnet/install.sh b/src/dotnet/install.sh
index f8231ac..d9399ca 100755
--- a/src/dotnet/install.sh
+++ b/src/dotnet/install.sh
@@ -230,7 +230,7 @@ install_using_apt_from_microsoft_repo() {
install_using_default_apt_repo() {
DOTNET_PACKAGE="dotnet6"
- apt_get_update_if_needed
+ apt_get_update
if [[ "${DOTNET_VERSION}" = "latest" ]] || [[ "${DOTNET_VERSION}" = "lts" ]] || [[ ${DOTNET_VERSION} = "6"* ]]; then
if ! (apt-get install -yq ${DOTNET_PACKAGE}); then
@@ -460,7 +460,7 @@ if [ "${CHANGE_OWNERSHIP}" = "true" ]; then
chown -R "${USERNAME}:dotnet" "${TARGET_DOTNET_ROOT}"
chmod -R g+r+w "${TARGET_DOTNET_ROOT}"
- find "${TARGET_DOTNET_ROOT}" -type d | xargs -n 1 chmod g+s
+ find "${TARGET_DOTNET_ROOT}" -type d -print0 | xargs -n 1 -0 chmod g+s
fi
echo "Done!"