From 56f0c8d5dec9aa8b96e185590b7f7f4f8ea62270 Mon Sep 17 00:00:00 2001 From: Mathieu Letendre-Jauniaux Date: Sun, 5 Aug 2018 17:20:35 -0400 Subject: [PATCH] Tolerate quoted UUID syntax in /etc/fstab. Closes #15 --- usbmount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbmount b/usbmount index 79b26a0..f3ba6b7 100755 --- a/usbmount +++ b/usbmount @@ -106,7 +106,7 @@ if [ "$1" = add ]; then log info "executing command: mount $DEVNAME" mount $DEVNAME || log err "mount by DEVNAME with $DEVNAME wasn't successful; return code $?" - elif grep -q "^[[:blank:]]*UUID=$UUID" /etc/fstab; then + elif grep -q "^[[:blank:]]*UUID=\"?$UUID\"?" /etc/fstab; then log info "executing command: mount -U $UUID" mount -U $UUID || log err "mount by UUID with $UUID wasn't successful; return code $?"