LIBMAN: fixed for

This commit is contained in:
XargonWan 2025-01-06 23:30:18 +09:00
parent 73f18fb899
commit c388468a7e

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Be aware that this script is deleting the source directory after copying the files and it's intended to be used onyl by flatpak builder # Be aware that this script is deleting the source directory after copying the files and it's intended to be used only by flatpak builder
echo "Worry not, LibMan is here!" echo "Worry not, LibMan is here!"
@ -62,7 +62,7 @@ find "$1" -type f -name "*.so*" | while IFS= read -r file; do
copied_files+=("$file") copied_files+=("$file")
else else
error_message=$(<error_log) error_message=$(<error_log)
echo "Warning: Failed to copy $file. Skipping." echo "Warning: Failed to copy $file. Skipping. Error: $error_message"
failed_files+=("$file, $error_message") failed_files+=("$file, $error_message")
fi fi
done done
@ -80,8 +80,5 @@ if [ ${#failed_files[@]} -ne 0 ]; then
echo "Failed files:" echo "Failed files:"
for file in "${failed_files[@]}"; do for file in "${failed_files[@]}"; do
echo "$file" echo "$file"
done
fi fi
fi