Serial Number Parsing Ambiguity #6

Open
opened 2026-02-02 14:58:38 -05:00 by jared · 0 comments
Owner

Line ~222

local serial=$(echo "$smart_info" | grep "Serial Number" | awk '{print $3}')

Issue: Serial numbers can contain spaces or special characters. This only captures the first word after "Serial Number:".

# Line ~222 local serial=$(echo "$smart_info" | grep "Serial Number" | awk '{print $3}') Issue: Serial numbers can contain spaces or special characters. This only captures the first word after "Serial Number:".
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/driveAtlas#6