diff --git a/extra/sshyp-completion.bash b/extra/sshyp-completion.bash index a45e7b3..abea8a2 100755 --- a/extra/sshyp-completion.bash +++ b/extra/sshyp-completion.bash @@ -3,7 +3,7 @@ _path_gen() { local sshyp_path="$HOME/.local/share/sshyp" local sshyp_path_length="$(("${#sshyp_path}" + 1))" - readarray -t full_paths < <(find "$sshyp_path" -type f -exec ls {} \;) + mapfile -t full_paths < <(find "$sshyp_path" -type f -exec ls {} \;) for path in "${full_paths[@]}"; do trimmed_path=$(echo ${path%????} | cut -c"$sshyp_path_length"-) trimmed_path=$(echo ${trimmed_path// /\\ })