code-server-powershell update/add workflows

This commit is contained in:
aptalca
2023-05-17 13:54:31 -04:00
parent 103140796f
commit 2826d17095
6 changed files with 67 additions and 99 deletions
-3
View File
@@ -1,3 +0,0 @@
#!/usr/bin/with-contenv bash
apt-get update
-25
View File
@@ -1,25 +0,0 @@
#!/usr/bin/with-contenv bash
ARCH=$(uname -m)
source /etc/lsb-release
if [ -f "/powershell/powershell_${ARCH}.tar.gz" ]; then
echo "Installing PowerShell"
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 \
/powershell/powershell_armv7l.tar.gz \
/powershell/powershell_aarch64.tar.gz
ln -s /powershell/pwsh /usr/bin/pwsh
else
echo "PowerShell already installed, skipping"
fi