replace faulty find command

main
Nils Gerstner 1 year ago
parent 2fbbbbd40a
commit 6c008c6be2

@ -10,7 +10,15 @@ ${HOME}/Documents/Code/RISE
EOF
}
_find_subfolder() {
local root_dir="${1}"
while read i; do
basename "$i";
done <<< "$(find "${HOME}/Documents/Code/GERSTNER" -mindepth 1 -maxdepth 1 -type d)" | fzf
# fzf <<< "$(find "${root_dir}" -type d -mindepth 1 -maxdepth 1 -exec basename {} + 2> /dev/null)"
}
root_dir="$(_find_root)"
base_name="$(find "${root_dir}" -type d -mindepth 1 -maxdepth 1 -exec basename {} + 2> /dev/null |fzf)"
base_name="$(_find_subfolder "${root_dir}")"
echo -e "${root_dir}/${base_name}"

Loading…
Cancel
Save