diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-13 09:47:35 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-13 09:47:35 +0100 |
| commit | ee512aee32b7a7fb17a2b49733056733d45f42cf (patch) | |
| tree | 21c95838257f28260fc08adb798dfbbe74c729bc /overlays | |
| parent | 1a6c18aa3719e35653dbef86f107932ab7d68d46 (diff) | |
| download | nixos-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.nix | 2 |
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 | ||
