Opened 9 years ago

Closed 8 years ago

#142 closed defect (duplicate)

update-smart-drivedb does not work on FreeBSD (+ solution)

Reported by: wesha Owned by: somebody
Priority: minor Milestone: Release 5.41
Component: drivedb Version: 5.40
Keywords: Cc:


/usr/local/sbin > ./update-smart-drivedb
./update-smart-drivedb~: syntax error in version number: 5.40

Problem: SED somehow fails to understand "?" metacharacter:

BRANCH="`echo $VERSION | sed -n 's|\([0-9][0-9]*\)\.\([0-9][0-9]*

Solution: be explicit:

BRANCH="echo $VERSION | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\([^0-9].*\)\{0,1\}$|RELEASE_\1_\2_DRIVEDB|p'"

Change History (2)

comment:1 Changed 9 years ago by Christian Franke

Milestone: Release 5.40.1

Thanks - but this likely was already fixed in r3214 (ticket #126). Please test if possible.

comment:2 Changed 8 years ago by Christian Franke

Milestone: Release 5.41
Resolution: duplicate
Status: newclosed

See ticket #126.

Note: See TracTickets for help on using tickets.