From 551789636d76a02b5bb9413f9e8fa0939cb05b97 Mon Sep 17 00:00:00 2001 From: Cuan Date: Thu, 8 Sep 2022 10:19:43 -0400 Subject: [PATCH] Slight line count reduction Former-commit-id: 442835aaecb34b116ca8a44109e08a0643344271 [formerly b27f4cb805c46759ef0a5c24960d758eb80093ab] Former-commit-id: 1087b9aae0e2c0e641e7f44e901ac16e07a33270 --- extra/sshyp-completion.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/sshyp-completion.bash b/extra/sshyp-completion.bash index 10581f2..551e0e2 100755 --- a/extra/sshyp-completion.bash +++ b/extra/sshyp-completion.bash @@ -5,8 +5,7 @@ _path_gen() { local sshyp_path_length="$(("${#sshyp_path}" + 1))" readarray -t full_paths < <(find "$sshyp_path" -type f -exec ls {} \;) for path in "${full_paths[@]}"; do - trimmed_path=${path%????} - trimmed_path=$(echo $trimmed_path | cut -c"$sshyp_path_length"-) + trimmed_path=$(echo ${path%????} | cut -c"$sshyp_path_length"-) trimmed_path=$(echo ${trimmed_path// /\\ }) trimmed_paths+=("$trimmed_path") done