mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-25 11:44:16 +01:00
Compare commits
No commits in common. "9a35f15e9f1b06068c33f51bd4b7d64e7040ce94" and "61e218a15b9ce2d2558daffedab9501df4c54dae" have entirely different histories.
9a35f15e9f
...
61e218a15b
@ -29,11 +29,6 @@ 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
|
||||
@ -48,13 +43,10 @@ if hash dnf 2>/dev/null; then
|
||||
# say nothing to do or do nothing if mirrors haven't updated.
|
||||
dnf check-update -y
|
||||
|
||||
# potentially unsafe first time, I am not sure if this is concern outside of Debian/Ubuntu though
|
||||
dnf "$@" autoremove
|
||||
|
||||
# If arguments like -y are passed to the script, they become "$@"
|
||||
dnf "$@" upgrade
|
||||
|
||||
# potentially unsafe, see a few lines above and the apt-get section
|
||||
# potentially unsafe
|
||||
dnf "$@" autoremove
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user