Fix multiple qnap listing
This commit is contained in:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user