Skip to content

Instantly share code, notes, and snippets.

@vasi
Created March 7, 2025 02:20
Show Gist options
  • Save vasi/78e80721522a70b452495b72bc57fbb3 to your computer and use it in GitHub Desktop.
Save vasi/78e80721522a70b452495b72bc57fbb3 to your computer and use it in GitHub Desktop.
Check for staged update in Bluefin
if [ -z "$STAGE_CHECKED" ]; then
export STAGE_CHECKED=1
if rpm-ostree status --json | jq -e '.deployments[].staged | select(.)' > /dev/null ; then
echo 'New upgrade staged! Reboot to install'
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment