Daniel Sheffield 3 mesi fa
parent
commit
60c2b6ff34
1 ha cambiato i file con 2 aggiunte e 5 eliminazioni
  1. 2 5
      recall.sh

+ 2 - 5
recall.sh

@@ -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" \