diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2023-08-07 19:10:45 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2023-08-11 11:59:10 +0200 |
commit | dc5b5bf4362d0d829fe02bbda1ea627097331b53 (patch) | |
tree | ad9023363be48386b6ccde996212e583c217c22f /pinentry-rofi.sh | |
parent | 792e55e570f6298b8af81ce5348dd8162827e4e7 (diff) | |
download | pinentry-rofi-dc5b5bf4362d0d829fe02bbda1ea627097331b53.tar.gz |
test: the same fix I did in the tests.
Diffstat (limited to 'pinentry-rofi.sh')
-rwxr-xr-x | pinentry-rofi.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pinentry-rofi.sh b/pinentry-rofi.sh index b6904be..57e6022 100755 --- a/pinentry-rofi.sh +++ b/pinentry-rofi.sh @@ -107,7 +107,7 @@ while : ; do # https://www.gnupg.org/documentation/manuals/gnupg/Agent-GETINFO.html # version or pid of this script? # gpg-agent --version works but it must be filtered - IFS=" " line_arr=("$(split_line "$line")") + IFS=" " line_arr=($(split_line "$line")) log_debug "line_arr: ${line_arr[*]}" subcommand=${line_arr[0]} log_debug "subcommand=${subcommand}" @@ -135,7 +135,7 @@ while : ; do assuan_send "${keyinfo}" assuan_send "OK" elif [[ "$line" =~ ^SETKEYINFO ]] ; then - IFS=" " line_arr=("$(split_line "$line")") + IFS=" " line_arr=($(split_line "$line")) log_debug "line_arr: ${line_arr[*]}" if [[ "${line_arr[0]}" =~ ^--clear ]] ; then keyinfo="" @@ -154,20 +154,20 @@ while : ; do assuan_send "OK" elif [[ "$line" =~ ^SETDESC ]] ; then #SETDESC Please enter the passphrase for the ssh key%0A ke:yf:in:ge:rp:ri:nt - IFS=" " line_arr=("$(split_line "$line")") + IFS=" " line_arr=($(split_line "$line")) log_debug "line_arr: ${line_arr[*]}" win_mesg="$(rfc3986-decode "${line_arr[*]}")" assuan_send "OK" elif [[ "$line" =~ ^SETPROMPT ]] ; then #SETPROMPT Passphrase: - IFS=" " line_arr=("$(split_line "$line")") + IFS=" " line_arr=($(split_line "$line")) log_debug "line_arr: ${line_arr[*]}" win_prompt="${line_arr[0]}" assuan_send "OK" elif [[ "$line" =~ ^GETPIN ]] ; then passw=None sys_env="$(systemctl --user show-environment | tr -s " \t\n" " ")" - IFS=" " sys_env_arr=("$(split_line "$sys_env" 1)") + IFS=" " sys_env_arr=($(split_line "$sys_env" 1)) log_debug "sys_env_arr: ${sys_env_arr[*]}" for env_line in "${sys_env_arr[@]}" ; do log_debug "env_line=${env_line}" |