mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-04 21:27:21 +02:00
Compare commits
3 Commits
a67afa9b4b
...
1005790a58
Author | SHA1 | Date | |
---|---|---|---|
1005790a58 | |||
b5f93fa386 | |||
3b9d98bc0e |
@ -38,8 +38,9 @@ if hash fedora-third-party 2> /dev/null; then
|
||||
fedora-third-party query
|
||||
fi
|
||||
|
||||
# TODO: Better way of identifying Fedora Atomic! There is the overlayfs thing?
|
||||
if [[ -f /usr/bin/dnf && ! -d /var/roothome ]]; then
|
||||
# If we have a /sysroot/ostree chances are we are on Fedora Atomic and
|
||||
# should use rpm-ostree instead of dnf
|
||||
if [[ -f /usr/bin/dnf && ! -d /sysroot/ostree ]]; then
|
||||
# I don't know if -y does anything here either and I think this may be
|
||||
# useless, but I am used to it coming from apt and I think it will just
|
||||
# say nothing to do or do nothing if mirrors haven't updated.
|
||||
@ -57,9 +58,10 @@ if [[ -f /usr/bin/dnf && ! -d /var/roothome ]]; then
|
||||
|
||||
# potentially unsafe, see a few lines above and the apt-get section
|
||||
dnf "$@" autoremove
|
||||
# TODO: Better way of identifying Fedora Atomic! There is the overlayfs thing?
|
||||
elif [[ -f /usr/bin/rpm-ostree && -d /var/roothome ]]; then
|
||||
elif [[ -f /usr/bin/rpm-ostree && -d /sysroot/ostree ]]; then
|
||||
rpm-ostree upgrade
|
||||
# This may flash far too fast otherwise
|
||||
sleep 5
|
||||
fi
|
||||
|
||||
# Arch Linux package management
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit b5f67ed87ec94517895a2f532020478488d89974
|
||||
Subproject commit 564890434d2f5771b6f00de7af4b135d97c7964b
|
@ -1 +1 @@
|
||||
Subproject commit f55f61762768c4d5c81944c3890e2eceb6a2816a
|
||||
Subproject commit 8f978bfdd0191a6375971f365a95df8afd7eef86
|
Loading…
x
Reference in New Issue
Block a user