From cd027eb71a28387c3fd08c084f8cf70e6feeb9cb Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 7 Jan 2025 09:54:17 +0900 Subject: [PATCH] LIBMAN: not showing "Copied files" if there aren't --- automation_tools/libman.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/automation_tools/libman.sh b/automation_tools/libman.sh index f13bbb28..f95dbc32 100644 --- a/automation_tools/libman.sh +++ b/automation_tools/libman.sh @@ -70,10 +70,12 @@ done echo "LibMan is flying away" # Output the lists of copied and failed files -echo "Copied files:" -for file in "${copied_files[@]}"; do - echo "$file" -done +if [ ${#copied_files[@]} -ne 0 ]; then + echo "Copied files:" + for file in "${copied_files[@]}"; do + echo "$file" + done +fi # Output failed files only if the list is not empty if [ ${#failed_files[@]} -ne 0 ]; then