Add correct escaping of nested double quotes
This commit is contained in:
parent
0ffa29d6dd
commit
9c6981accf
|
@ -109,13 +109,13 @@ class podmanrunner::runner (
|
|||
unless => "test -f /var/lib/systemd/linger/${user}${userpostfix}",
|
||||
}
|
||||
|
||||
# If required build runner image by podman-compose
|
||||
# If required, build runner image by podman-compose
|
||||
exec { "${user}${userpostfix}-build-runner-image":
|
||||
command => "${sdrun} /bin/bash -c 'podman-compose build'",
|
||||
path => '/usr/bin:/usr/sbin:/bin',
|
||||
provider => shell,
|
||||
logoutput => false,
|
||||
unless => "${sdrun} /bin/bash -c 'podman image ls | grep '^localhost/podmanrunner\s\s*3\.[0-9]\.[0-9]''",
|
||||
unless => "${sdrun} /bin/bash -c \"podman image ls | grep '^localhost/podmanrunner\s\s*3\.[0-9]\.[0-9]'\"",
|
||||
}
|
||||
|
||||
# If not already done, register runner with forgejo instance.
|
||||
|
|
Loading…
Reference in a new issue