diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-01-24 08:43:28 +0100 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-01-24 08:43:28 +0100 |
| commit | c70826d3042c0821051cd28d305251153733a91c (patch) | |
| tree | 6911d2821ee71c6cc0e51848e468e866ae7f68e3 /scripts/.local | |
| parent | f4ff2f79d2b7cbc691a1ebecd3919d4cc618da3b (diff) | |
1
Diffstat (limited to 'scripts/.local')
| -rwxr-xr-x | scripts/.local/bin/dpass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/.local/bin/dpass b/scripts/.local/bin/dpass index adfb0e4..53e9129 100755 --- a/scripts/.local/bin/dpass +++ b/scripts/.local/bin/dpass @@ -66,13 +66,13 @@ case $action in notify-send -u critical "No login for \"$password_file\" was found" exit 1 fi - echo "$login" | "${output_method[@]}" + echo "$login" | $output_method if [[ -n $action_descr ]]; then notify-send "Login for \"$password_file\" was $action_descr" fi ;; password) - pass show "$password_file" | head -n 1 | "${output_method[@]}" + pass show "$password_file" | head -n 1 | $output_method #pass show -c "$password" 2>/dev/null if [[ -n $action_descr ]]; then notify-send "Password for \"$password_file\" was $action_descr" @@ -93,7 +93,7 @@ case $action in if [[ $do_trim == "Yes" ]]; then data=$(echo "$data" | cut -f 2- -d ' ') fi - echo "$data" | "${output_method[@]}" + echo "$data" | $output_method if [[ -n $action_descr ]]; then notify-send "Data for $password_file was $action_descr" fi |
