From ee512aee32b7a7fb17a2b49733056733d45f42cf Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 13 Dec 2021 09:47:35 +0100 Subject: sshpass: don't continue if secret-tool fails --- overlays/sshpass-secret.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlays/sshpass-secret.nix b/overlays/sshpass-secret.nix index cfd19afe..1fec5cf3 100644 --- a/overlays/sshpass-secret.nix +++ b/overlays/sshpass-secret.nix @@ -16,7 +16,7 @@ final: prev: { [[ "''${arg}" == '--' ]] && break user=''${arg%@*} host=''${arg#*@} - exec {fdnum}< <(${final.gnome.libsecret}/bin/secret-tool lookup service sshpass host "''${host}" user "''${user}") + exec {fdnum}<<<$(${final.gnome.libsecret}/bin/secret-tool lookup service sshpass host "''${host}" user "''${user}") cmd+=(${final.sshpass}/bin/sshpass -d ''${fdnum} -P "''${user}@''${host}'s password:") done -- cgit v1.2.3