1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

use builtin conditions where possible

This commit is contained in:
Jason N. 2024-03-13 11:06:12 -04:00
parent c3e7518310
commit 2dde2b4f5c
2 changed files with 21 additions and 23 deletions

View file

@ -1,5 +1,5 @@
<%page args="image_repo, _image_repo_double_escaped, image_name, image_tag, version"/>
if (which bootc &> /dev/null) && [ ${version} -ge 39 ]
<%page args="image_repo, _image_repo_double_escaped, image_name, image_tag, _rhel, version"/>
if (which bootc &> /dev/null) && [ ${_rhel} == 'false' && ${version} -ge 39 ]
then
bootc switch --mutate-in-place --enforce-container-sigpolicy --transport registry ${image_repo}/${image_name}:${image_tag}
else