1

Add emergency interactive package installation fallback

This commit is contained in:
Jessie Hildebrandt 2024-04-14 03:51:48 +00:00
parent b7afd9dfca
commit 96500223f5

View File

@ -326,7 +326,10 @@ fi
sudo zypper --non-interactive remove ${RM[@]} ${AL[@]} sudo zypper --non-interactive remove ${RM[@]} ${AL[@]}
sudo zypper --non-interactive addlock ${AL[@]} sudo zypper --non-interactive addlock ${AL[@]}
sudo zypper --non-interactive install ${IN[@]} if ! sudo zypper --non-interactive install ${IN[@]}; then
echo "Package installation failed, running interactively..."
sudo zypper install ${IN[@]}
fi
# Install any codecs not hosted by OpenSUSE # Install any codecs not hosted by OpenSUSE
sudo zypper --non-interactive --gpg-auto-import-keys addrepo -cfp 90 "${PACKMAN_REPO_URL}" packman sudo zypper --non-interactive --gpg-auto-import-keys addrepo -cfp 90 "${PACKMAN_REPO_URL}" packman