From 22676f90fe768a5631159c7f8d85befe8f93d698 Mon Sep 17 00:00:00 2001 From: asen23 Date: Tue, 17 Dec 2024 10:33:04 +0700 Subject: [PATCH] fix: change bazzite ref and write using tee --- files/scripts/azurite/modify-fastfetch.sh | 4 +++- files/scripts/azurite/modify-image-info.sh | 4 +++- files/scripts/bazzite/modify-image-info.sh | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/files/scripts/azurite/modify-fastfetch.sh b/files/scripts/azurite/modify-fastfetch.sh index 8c5fb52..1054693 100644 --- a/files/scripts/azurite/modify-fastfetch.sh +++ b/files/scripts/azurite/modify-fastfetch.sh @@ -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 diff --git a/files/scripts/azurite/modify-image-info.sh b/files/scripts/azurite/modify-image-info.sh index 402a682..4c15b1e 100755 --- a/files/scripts/azurite/modify-image-info.sh +++ b/files/scripts/azurite/modify-image-info.sh @@ -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 diff --git a/files/scripts/bazzite/modify-image-info.sh b/files/scripts/bazzite/modify-image-info.sh index d441bf4..62e6480 100755 --- a/files/scripts/bazzite/modify-image-info.sh +++ b/files/scripts/bazzite/modify-image-info.sh @@ -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