|
@@ -219,16 +219,13 @@ then
|
|
|
if [ "${1:-}" ]
|
|
|
then
|
|
|
slugs=( "$1" )
|
|
|
- if [ "${2:-}" ]
|
|
|
- then
|
|
|
- slugs+=( "$2" )
|
|
|
- fi
|
|
|
+ [ "${2:-}" ] && slugs+=( "$2" )
|
|
|
query="$(bash -ac 'IFS=/; echo "$*"' "recall-bash" "${slugs[@]}")"
|
|
|
find_name=( -wholename "**/$query/**" )
|
|
|
fi
|
|
|
(
|
|
|
cd "$LOG_ROOT"
|
|
|
- find_w0_leaf_directories "${find_name[@]}"\
|
|
|
+ find_w0_leaf_directories "${find_name[@]}" \
|
|
|
| sort_rw0 "$sort_opt" \
|
|
|
| head -zn "${NUM:--0}" \
|
|
|
| preview_rw0 "2" \
|