2024-04-21 14:33:41 -07:00

11 lines
289 B
Bash
Executable File

#!/usr/bin/bash
RED_FLASHING='\033[6;31m'
echo -n $(jq -r '"\(.["image-name"]):\(.["image-branch"])"' < /usr/share/ublue-os/image-info.json)
if [[ "$(rpm-ostree status --json --booted)" =~ "ostree-image-signed" ]]; then
echo -n -e " "
else
echo -n -e " ${RED_FLASHING}"
fi