mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-28 08:37:12 +00:00
chore: Write steamos-update log to file
This commit is contained in:
parent
65fd2be751
commit
6782698090
@ -60,8 +60,13 @@ if command -v ublue-update > /dev/null; then
|
||||
echo 100%
|
||||
}
|
||||
upgrade() {
|
||||
# Log rotate the last session
|
||||
if [ -f "${HOME}"/.steamos-update.log ]; then
|
||||
cp "${HOME}"/.steamos-update.log "${HOME}"/.steamos-update.log.old
|
||||
fi
|
||||
|
||||
# Pull exit code from ublue-update
|
||||
systemctl start ublue-update-force > /dev/null 2>&1
|
||||
systemctl start ublue-update-force > "${HOME}"/.steamos-update.log 2>&1
|
||||
echo $? > /tmp/upgrade-check
|
||||
}
|
||||
upgrade | fake_progress
|
||||
|
Loading…
x
Reference in New Issue
Block a user