From dc5b5bf4362d0d829fe02bbda1ea627097331b53 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 7 Aug 2023 19:10:45 +0200 Subject: test: the same fix I did in the tests. --- pinentry-rofi.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pinentry-rofi.sh') 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}" -- cgit