deb-update.bash: add dpkg configuration just in case

This commit is contained in:
Aminda Suomalainen 2022-09-07 20:13:07 +03:00
parent 61e218a15b
commit 3a26251f0c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:y2OpGEbett3Fqn8XFrP0X4mWfCVKf4rWkxERzqPY81U
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ if hash apt-get 2>/dev/null; then
apt-get "$@" autoremove
fi
if hash dpkg 2>/dev/null; then
# In case dpkg was interrupted previously, configure packages.
dpkg --configure -a
fi
# Enables Fedora third party repositories if not enabled, otherwise quiet.
# My systems most likely have them already
if hash fedora-third-party 2>/dev/null; then