Skip to content

Commit

Permalink
nixos/virtualization: fix shellcheck login
Browse files Browse the repository at this point in the history
fixes https://www.shellcheck.net/wiki/SC2002

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
  • Loading branch information
gador authored and bjornfor committed Nov 7, 2023
1 parent 67ff7c0 commit 2ed7a5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nixos/modules/virtualisation/oci-containers.nix
Expand Up @@ -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}
Expand Down

1 comment on commit 2ed7a5a

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/donating-srvos-to-nix-community/34971/5

Please sign in to comment.