1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

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}