From 588ac7273ba6ed0ca16fdef70e10d91a129f81fa Mon Sep 17 00:00:00 2001 From: aptalca Date: Sun, 28 Nov 2021 22:28:53 -0500 Subject: [PATCH] code-server-powershell detect focal --- root/etc/cont-init.d/98-powershell | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/root/etc/cont-init.d/98-powershell b/root/etc/cont-init.d/98-powershell index 73e271a..b3d14f7 100644 --- a/root/etc/cont-init.d/98-powershell +++ b/root/etc/cont-init.d/98-powershell @@ -1,12 +1,19 @@ #!/usr/bin/with-contenv bash ARCH=$(uname -m) +source /etc/lsb-release if [ -f "/powershell/powershell_${ARCH}.tar.gz" ]; then echo "Installing PowerShell" - apt-get install -y \ - libicu60 \ - libunwind8 + if [ "${DISTRIB_CODENAME}" == "bionic" ]; then + apt-get install -y \ + libicu60 \ + libunwind8 + elif [ "${DISTRIB_CODENAME}" == "focal" ]; then + apt-get install -y \ + libicu66 \ + libunwind8 + fi tar xf "/powershell/powershell_${ARCH}.tar.gz" -C /powershell rm -rf \ /powershell/powershell_x86_64.tar.gz \