switch to multi-arch

This commit is contained in:
aptalca
2024-01-24 17:17:43 -05:00
parent 236ad54e65
commit 6441f6172a
3 changed files with 22 additions and 21 deletions
@@ -1,9 +1,8 @@
#!/usr/bin/with-contenv bash
ARCH=$(uname -m)
source /etc/lsb-release
if [ -f "/powershell/powershell_${ARCH}.tar.gz" ]; then
if [ -f "/powershell/powershell.tar.gz" ]; then
echo "Installing PowerShell"
if [ "${DISTRIB_CODENAME}" == "bionic" ]; then
echo "\
@@ -18,11 +17,9 @@ if [ -f "/powershell/powershell_${ARCH}.tar.gz" ]; then
libicu70 \
libunwind8" >> /mod-repo-packages-to-install.list
fi
tar xf "/powershell/powershell_${ARCH}.tar.gz" -C /powershell
tar xf "/powershell/powershell.tar.gz" -C /powershell
rm -rf \
/powershell/powershell_x86_64.tar.gz \
/powershell/powershell_armv7l.tar.gz \
/powershell/powershell_aarch64.tar.gz
/powershell/powershell.tar.gz
ln -s /powershell/pwsh /usr/bin/pwsh
else
echo "PowerShell already installed, skipping"