Bug 1896800 - Wait for snap changes to complete r=benchatt

Differential Revision: https://phabricator.services.mozilla.com/D210768
This commit is contained in:
Alexandre Lissy 2024-06-04 13:55:10 +00:00
parent 090ad839d5
commit cdc840800e

View file

@ -46,6 +46,14 @@ fi;
sudo snap refresh --hold=24h firefox
while true; do
if snap changes 2>&1 | grep -E '(Doing|Undoing|Do\s|restarting)'; then
echo wait; sleep 0.5
else
break
fi
done
sudo snap install --name firefox --dangerous ./firefox.snap
RUNTIME_VERSION=$(snap run firefox --version | awk '{ print $3 }')