chore: Use ID for branch select

This commit is contained in:
Kyle Gospodnetich 2024-08-22 12:20:06 -07:00 committed by GitHub
parent a0e2a73925
commit dc6d4dc282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ if [[ $# -eq 1 ]]; then
if [[ -f /var/ublue-update/branch ]]; then
branch=$(cat /var/ublue-update/branch)
else
branch=$(cut -d ":" -f4 <<< "$(rpm-ostree status --booted | grep -m 1 $VARIANT_ID)")
branch=$(cut -d ":" -f4 <<< "$(rpm-ostree status --booted | grep -m 1 $ID)")
fi
# Trim and convert to lowercase