Skip to content

Commit

Permalink
fix: change bazzite ref and write using tee
Browse files Browse the repository at this point in the history
  • Loading branch information
asen23 committed Dec 17, 2024
1 parent fea5032 commit 22676f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion files/scripts/azurite/modify-fastfetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ jq '.logo.type = "chafa"' | \
# Change logo source
jq '.logo.source = "/usr/share/asen23/logo.png"' | \
# Remove unused color param
jq 'del(.logo.color)' > /usr/share/ublue-os/bazzite/fastfetch.jsonc
jq 'del(.logo.color)' | \
# Write result
tee /usr/share/ublue-os/image-info.json

4 changes: 3 additions & 1 deletion files/scripts/azurite/modify-image-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ jq '."image-name" = "azurite"' | \
# Change vendor \
jq '."image-vendor" = "asen23"' | \
# Change image ref \
jq '."image-ref" = "ostree-image-signed:docker://ghcr.io/asen23/azurite"' > /usr/share/ublue-os/image-info.json
jq '."image-ref" = "ostree-image-signed:docker://ghcr.io/asen23/azurite"' | \
# Write result
tee /usr/share/ublue-os/image-info.json

6 changes: 4 additions & 2 deletions files/scripts/bazzite/modify-image-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ set -oue pipefail

# Edit image-info.json
cat /usr/share/ublue-os/image-info.json | \
# Change image ref \
jq '."image-ref" = "ostree-image-signed:docker://ghcr.io/asen23/azurite"' > /usr/share/ublue-os/image-info.json
# Change image ref
jq '."image-ref" = "ostree-image-signed:docker://ghcr.io/asen23/bazzite"' | \
# Write result
tee /usr/share/ublue-os/image-info.json

0 comments on commit 22676f9

Please sign in to comment.