Fix multiple qnap listing

This commit is contained in:
2026-10-02 12:18:38 +03:00
parent 14b06921d2
commit 117d07aca8
+2 -2
View File
@@ -324,7 +324,7 @@ mkdir -p "$LOG_DIR" "$DEST_ROOT"
log "Starting migration. dest=$DEST_ROOT dry_run=$DRY_RUN list_only=$LIST_ONLY"
running=0
while IFS= read -r line || [ -n "$line" ]; do
while IFS= read -r -u 3 line || [ -n "$line" ]; do
line="${line%%#*}"
line="${line//$'\r'/}"
[ -z "${line// /}" ] && continue
@@ -346,7 +346,7 @@ while IFS= read -r line || [ -n "$line" ]; do
wait -n
running=$((running - 1))
fi
done < "$CONFIG_FILE"
done 3< "$CONFIG_FILE"
wait
log "Migration complete. Logs in $LOG_DIR"