summaryrefslogtreecommitdiff
path: root/build_files
diff options
context:
space:
mode:
Diffstat (limited to 'build_files')
-rwxr-xr-xbuild_files/patch-bazzite-rollback-helper.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/build_files/patch-bazzite-rollback-helper.sh b/build_files/patch-bazzite-rollback-helper.sh
index e944d17..6d565b0 100755
--- a/build_files/patch-bazzite-rollback-helper.sh
+++ b/build_files/patch-bazzite-rollback-helper.sh
@@ -40,7 +40,12 @@ awk '
}
skip && /^warn_if_de_mismatch\(\) \{/ { skip=0; print; next }
skip { next }
- { gsub("ostree-image-signed:docker://ghcr.io/ublue-os/", "$(signing_scheme)/$(current_image_prefix)/"); print }
+ {
+ gsub("ostree-image-signed:docker://[^\"]+/", "$(signing_scheme)$(current_image_prefix)/")
+ gsub("\\$\\(signing_scheme\\)/\\$\\(current_image_prefix\\)/", "$(signing_scheme)$(current_image_prefix)/")
+ gsub("\\$\\(signing_scheme\\)/", "$(signing_scheme)")
+ print
+ }
' "$file" > "$patched_file"
install -m 0755 "$patched_file" "$file"