Skip to content

grep called with extended regular expresion when testing for UUID #47

@broadblues

Description

@broadblues

At line 109 in the usbmount script.

elif grep -q "^[[:blank:]]*UUID=\"?$UUID\"?" /etc/fstab; then

grep is called with extended regular expression syntax (the \"? expression) and so fails to match any UUID in fstab.

It should be "egrep" or "grep -E" the former is more consistant with the usage one or two lines above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions