[Usbmount-commit] r73 - usbmount/trunk

Rogério Brito rbrito-guest at alioth.debian.org
Mon Oct 26 17:57:27 UTC 2009


Author: rbrito-guest
Date: 2009-10-26 17:57:27 +0000 (Mon, 26 Oct 2009)
New Revision: 73

Modified:
   usbmount/trunk/usbmount
Log:
Consistently break lines after relational operators.


Modified: usbmount/trunk/usbmount
===================================================================
--- usbmount/trunk/usbmount	2009-10-26 17:55:28 UTC (rev 72)
+++ usbmount/trunk/usbmount	2009-10-26 17:57:27 UTC (rev 73)
@@ -115,8 +115,7 @@
 	if in_list "$fstype" "$FILESYSTEMS"; then
 	    # Search an available mountpoint.
 	    for v in $MOUNTPOINTS; do
-		if [ -d "$v" ] \
-		    && ! grep -q "^[^ ][^ ]*  *$v " /proc/mounts; then
+		if [ -d "$v" ] && ! grep -q "^[^ ][^ ]*  *$v " /proc/mounts; then
 		    mountpoint="$v"
 		    log debug "mountpoint $mountpoint is available for $DEVNAME"
 		    break
@@ -188,8 +187,8 @@
 	if [ "$DEVNAME" = "$device" ]; then
 	    # If the mountpoint and filesystem type are maintained by
 	    # this script, unmount the filesystem.
-	    if in_list "$mountpoint" "$MOUNTPOINTS" \
-		&& in_list "$fstype" "$FILESYSTEMS"; then
+	    if in_list "$mountpoint" "$MOUNTPOINTS" &&
+		in_list "$fstype" "$FILESYSTEMS"; then
 		log info "executing command: umount -l $mountpoint"
 		umount -l "$mountpoint"
 




More information about the Usbmount-commit mailing list