run dnf5 commands only when dnf5 available
This commit is contained in:
parent
9a4375ee3e
commit
af09fb1505
1 changed files with 9 additions and 5 deletions
|
|
@ -31,11 +31,15 @@
|
|||
|
||||
rlJournalStart
|
||||
rlPhaseStartTest
|
||||
rlRun "/usr/bin/dnf5 update -y"
|
||||
rlRun "/usr/bin/dnf5 search sqlite"
|
||||
rlRun "/usr/bin/dnf5 autoremove -y"
|
||||
rlRun "/usr/bin/dnf5 info sqlite"
|
||||
rlRun "/usr/bin/dnf5 history list"
|
||||
if [ ! -e /usr/bin/dnf5 ]; then
|
||||
rlLog "dnf5 is not available, skipping"
|
||||
else
|
||||
rlRun "/usr/bin/dnf5 update -y"
|
||||
rlRun "/usr/bin/dnf5 search sqlite"
|
||||
rlRun "/usr/bin/dnf5 autoremove -y"
|
||||
rlRun "/usr/bin/dnf5 info sqlite"
|
||||
rlRun "/usr/bin/dnf5 history list"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
rlJournalPrintText
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue