Jelajahi Sumber

fix shellcheck warnings

Daniel Sheffield 3 bulan lalu
induk
melakukan
ed50815f72
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 2 1
      helpers/find.sh
  2. 1 1
      recall.sh

+ 2 - 1
helpers/find.sh

@@ -5,7 +5,8 @@ find_w0_leaf_directories (){
 	# NOTE: list all leaf directories in current working dir tree
 	#       excluding ts directories or links
 	find . \
-		\( -type l -o -type d \) -wholename './????????_??????_?????????' -prune -o -type d "${find_name[@]}" \( \
+		\( -type l -o -type d \) -wholename './????????_??????_?????????' -prune \
+		-o -type d "$@" \( \
 			-links 2 \
 			-o \( \
 				-links 1 -exec bash -c '! [ "$(find "$1" -mindepth 1 -type d)" ]' find-bash {} \; \

+ 1 - 1
recall.sh

@@ -187,7 +187,7 @@ then
 	fi
 	(
 		cd "$LOG_ROOT"
-		find_w0_leaf_directories \
+		find_w0_leaf_directories "${find_name[@]}"\
 		| sort_rw0 "$sort_opt" \
 		| head -zn "${NUM:--0}" \
 		| fzf_rw0_inplace_preview "2" \