mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-10-27 12:40:02 -04:00
Slight line count reduction
This commit is contained in:
1 parent
f411a56d1f
commit
b27f4cb805
1 file changed
+1
-2
@@ -5,8 +5,7 @@ _path_gen() {
|
|||||||
local sshyp_path_length="$(("${#sshyp_path}" + 1))"
|
local sshyp_path_length="$(("${#sshyp_path}" + 1))"
|
||||||
readarray -t full_paths < <(find "$sshyp_path" -type f -exec ls {} \;)
|
readarray -t full_paths < <(find "$sshyp_path" -type f -exec ls {} \;)
|
||||||
for path in "${full_paths[@]}"; do
|
for path in "${full_paths[@]}"; do
|
||||||
trimmed_path=${path%????}
|
trimmed_path=$(echo ${path%????} | cut -c"$sshyp_path_length"-)
|
||||||
trimmed_path=$(echo $trimmed_path | cut -c"$sshyp_path_length"-)
|
|
||||||
trimmed_path=$(echo ${trimmed_path// /\\ })
|
trimmed_path=$(echo ${trimmed_path// /\\ })
|
||||||
trimmed_paths+=("$trimmed_path")
|
trimmed_paths+=("$trimmed_path")
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in new issue
Block a user