Slight line count reduction

This commit is contained in:
2022-09-08 10:19:43 -04:00
parent f411a56d1f
commit b27f4cb805
+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