You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change breaks UUID matching in /etc/fstab on Ubuntu 18.04.1 (and probably most other OS).
The problem is that it tries to match using "? but ? is not a basic regular expression (BRE) metacharacter. ? is an extended regular expression (ERE) metacharacter so grep needs the "-E" parameter as follows:
elif egrep -q "^[[:blank:]]*UUID=\"?$UUID\"?" /etc/fstab; then
It will now work.
EDIT: Changed "grep -E" to "egrep" to be consistent with the rest of the code.
The text was updated successfully, but these errors were encountered:
usbmount/usbmount
Line 109 in 9a92e7d
This change breaks UUID matching in /etc/fstab on Ubuntu 18.04.1 (and probably most other OS).
The problem is that it tries to match using "? but ? is not a basic regular expression (BRE) metacharacter. ? is an extended regular expression (ERE) metacharacter so grep needs the "-E" parameter as follows:
elif egrep -q "^[[:blank:]]*UUID=\"?$UUID\"?" /etc/fstab; then
It will now work.
EDIT: Changed "grep -E" to "egrep" to be consistent with the rest of the code.
The text was updated successfully, but these errors were encountered: