summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-12-13 09:47:35 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-12-13 09:47:35 +0100
commitee512aee32b7a7fb17a2b49733056733d45f42cf (patch)
tree21c95838257f28260fc08adb798dfbbe74c729bc /overlays
parent1a6c18aa3719e35653dbef86f107932ab7d68d46 (diff)
downloadnixos-ee512aee32b7a7fb17a2b49733056733d45f42cf.tar
nixos-ee512aee32b7a7fb17a2b49733056733d45f42cf.tar.gz
nixos-ee512aee32b7a7fb17a2b49733056733d45f42cf.tar.bz2
nixos-ee512aee32b7a7fb17a2b49733056733d45f42cf.tar.xz
nixos-ee512aee32b7a7fb17a2b49733056733d45f42cf.zip
sshpass: don't continue if secret-tool fails
Diffstat (limited to 'overlays')
-rw-r--r--overlays/sshpass-secret.nix2
1 files changed, 1 insertions, 1 deletions
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: {
16 [[ "''${arg}" == '--' ]] && break 16 [[ "''${arg}" == '--' ]] && break
17 user=''${arg%@*} 17 user=''${arg%@*}
18 host=''${arg#*@} 18 host=''${arg#*@}
19 exec {fdnum}< <(${final.gnome.libsecret}/bin/secret-tool lookup service sshpass host "''${host}" user "''${user}") 19 exec {fdnum}<<<$(${final.gnome.libsecret}/bin/secret-tool lookup service sshpass host "''${host}" user "''${user}")
20 cmd+=(${final.sshpass}/bin/sshpass -d ''${fdnum} -P "''${user}@''${host}'s password:") 20 cmd+=(${final.sshpass}/bin/sshpass -d ''${fdnum} -P "''${user}@''${host}'s password:")
21 done 21 done
22 22