nixos/virtualization: fix shellcheck login

fixes https://www.shellcheck.net/wiki/SC2002

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
Florian Brandes 2023-11-05 16:22:50 +01:00 committed by Bjørn Forsman
parent 67ff7c095d
commit 2ed7a5ab59

View File

@ -252,11 +252,10 @@ let
text = ''
${cfg.backend} rm -f ${name} || true
${optionalString (isValidLogin container.login) ''
cat ${container.login.passwordFile} | \
${cfg.backend} login \
${container.login.registry} \
--username ${container.login.username} \
--password-stdin
--password-stdin < ${container.login.passwordFile}
''}
${optionalString (container.imageFile != null) ''
${cfg.backend} load -i ${container.imageFile}