Fix escaping hell

This commit is contained in:
Sandro - 2023-10-31 04:34:55 +01:00
parent e38899e596
commit 6665476988
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ lib.attrsets.mapAttrs
${hostConfig.system.build.copyToServer} ${inputPaths} ${declaredRunnerDrvPath}
${hostConfig.system.build.runOnServer} NIXOS_REBUILD=$NIXOS_REBUILD bash -e <<END
${hostConfig.system.build.runOnServer} NIXOS_REBUILD="''${NIXOS_REBUILD:-}" bash -e <<END
set -eou pipefail
${createDirsCopyCurrent name}
@ -201,7 +201,7 @@ lib.attrsets.mapAttrs
${createSymlinks name}
if [[ -z \\''${NIXOS_REBUILD:-} ]]; then
if [[ -z \''${NIXOS_REBUILD:-} ]]; then
echo "Restarting MicroVM..."
systemctl restart microvm@${name}.service
fi