mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-04-10 15:45:17 +00:00
Merge pull request #48 from ublue-os/fix-update-progress
fix(steamos-update): Get progress bar working again
This commit is contained in:
commit
4aa37f3a96
@ -25,7 +25,8 @@ if command -v ublue-update > /dev/null; then
|
|||||||
# Fake upgrade progress bar
|
# Fake upgrade progress bar
|
||||||
fake_progress() {
|
fake_progress() {
|
||||||
local value=0
|
local value=0
|
||||||
while read -r line; do
|
while [ ! -f '/tmp/upgrade-check' ]; do
|
||||||
|
sleep 5
|
||||||
if [ ${value} -lt '100' ]; then
|
if [ ${value} -lt '100' ]; then
|
||||||
echo ${value}'%'
|
echo ${value}'%'
|
||||||
value=$(( value + 3 ))
|
value=$(( value + 3 ))
|
||||||
@ -35,7 +36,7 @@ if command -v ublue-update > /dev/null; then
|
|||||||
}
|
}
|
||||||
upgrade() {
|
upgrade() {
|
||||||
# Pull exit code from ublue-update
|
# Pull exit code from ublue-update
|
||||||
ublue-update --force
|
ublue-update --force > /dev/null 2>&1
|
||||||
echo $? > /tmp/upgrade-check
|
echo $? > /tmp/upgrade-check
|
||||||
}
|
}
|
||||||
upgrade | fake_progress
|
upgrade | fake_progress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user