Skip to content

Commit

Permalink
ref: use yq to parse image-info
Browse files Browse the repository at this point in the history
  • Loading branch information
asen23 committed Jul 22, 2024
1 parent 8c3ef9b commit 08c1fb2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions files/scripts/modify-image-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
set -oue pipefail

# Edit image-info.json
# Change bazzite to azurite
sed -i 's/bazzite/azurite/' /usr/share/ublue-os/image-info.json
# Change vendor to asen23
sed -i 's/ublue-os/asen23/' /usr/share/ublue-os/image-info.json
# Change image name
yq -i '.image-name = "azurite"' /usr/share/ublue-os/image-info.json
# Change vendor
yq -i '.image-vendor = "asen23"' /usr/share/ublue-os/image-info.json
# Change image ref
yq -i '.image-ref = "ostree-image-signed:docker://ghcr.io/asen23/azurite"' /usr/share/ublue-os/image-info.json

0 comments on commit 08c1fb2

Please sign in to comment.