mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03: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:
parent
67ff7c095d
commit
2ed7a5ab59
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user