From 9c6981accf57ff4b2e7a71a2f619bb4340cc6606 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Tue, 6 Feb 2024 23:41:42 +0100 Subject: [PATCH] Add correct escaping of nested double quotes --- manifests/runner.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/runner.pp b/manifests/runner.pp index 378f724..3fd2561 100644 --- a/manifests/runner.pp +++ b/manifests/runner.pp @@ -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.