Slight line count reduction

Former-commit-id: 442835aaecb34b116ca8a44109e08a0643344271 [formerly b27f4cb805]
Former-commit-id: 1087b9aae0e2c0e641e7f44e901ac16e07a33270
This commit is contained in:
2022-09-08 10:19:43 -04:00
parent 9ab175a8d8
commit 551789636d
+1 -2
View File
@@ -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