mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
escape
This commit is contained in:
parent
e8e9767a07
commit
bbb48d18e8
1 changed files with 6 additions and 5 deletions
11
Makefile
11
Makefile
|
|
@ -5,7 +5,8 @@ image_repo = ghcr.io/ublue-os
|
|||
image_name = base-main
|
||||
variant = Server
|
||||
|
||||
image_repo_escaped = $(shell echo $(image_repo) | sed 's/\//\\\//g')
|
||||
image_repo_escaped = $(subst /,\/,$(image_repo))
|
||||
image_repo_double_escaped = $(subst /,\/,$(image_repo_escaped))
|
||||
|
||||
deploy.iso: boot.iso xorriso/input.txt $(image_name)-$(version)
|
||||
xorriso -dialog on < xorriso/input.txt
|
||||
|
|
@ -34,10 +35,10 @@ install-deps:
|
|||
|
||||
|
||||
lorax_templates/%.tmpl: lorax_templates/%.tmpl.in
|
||||
sed 's/@IMAGE_NAME@/$(image_name)/' lorax_templates/$*.tmpl.in > lorax_templates/$*.tmpl
|
||||
sed 's/@IMAGE_REPO@/$(image_repo)/' lorax_templates/$*.tmpl > lorax_templates/$*.tmpl
|
||||
sed 's/@VERSION@/$(version)/' lorax_templates/$*.tmpl > lorax_templates/$*.tmpl
|
||||
sed 's/@IMAGE_REPO_ESCAPED@/$(image_repo_escaped)/' lorax_templates/$*.tmpl > lorax_templates/$*.tmpl
|
||||
sed 's/@IMAGE_NAME@/$(image_name)/' lorax_templates/$*.tmpl.in > lorax_templates/$*.tmpl
|
||||
sed 's/@IMAGE_REPO@/$(image_repo_escaped)/' lorax_templates/$*.tmpl > lorax_templates/$*.tmpl
|
||||
sed 's/@VERSION@/$(version)/' lorax_templates/$*.tmpl > lorax_templates/$*.tmpl
|
||||
sed 's/@IMAGE_REPO_ESCAPED@/$(image_repo_double_escaped)/' lorax_templates/$*.tmpl > lorax_templates/$*.tmpl
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue