From d49e5b2bc5dec526b0e2f33d06750d2eaf4ef539 Mon Sep 17 00:00:00 2001
From: XargonWan <XargonWan@gmail.com>
Date: Tue, 7 Jan 2025 09:16:35 +0900
Subject: [PATCH] LIBMAN: using for to don't fall in a subshell

---
 automation_tools/libman.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/automation_tools/libman.sh b/automation_tools/libman.sh
index 4ae49582..f13bbb28 100644
--- a/automation_tools/libman.sh
+++ b/automation_tools/libman.sh
@@ -39,7 +39,7 @@ done
 copied_files=()
 failed_files=()
 
-find "$1" -type f -name "*.so*" | while IFS= read -r file; do
+for file in $(find "$1" -type f -name "*.so*"); do
     # Define destination file path
     dest_file="$target_dir/$(basename "$file")"