[SCM] live-boot branch, debian-next, updated. debian/3.0_a26-1-15-g9cd39e1

Tails developers amnesia at boum.org
Sun Apr 8 18:32:39 UTC 2012


The following commit has been merged in the debian-next branch:
commit 3f5ce105e58a21bfbf4aa9615e055974f478fbdf
Author: Tails developers <amnesia at boum.org>
Date:   Sun Apr 8 20:26:49 2012 +0200

    Removing overkill double-checking of return code in is_mountpoint predicate.

diff --git a/scripts/live-helpers b/scripts/live-helpers
index c6feefe..d73f44d 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -1589,10 +1589,5 @@ is_mountpoint () {
 
 	directory="$1"
 
-	if [ $(stat -fc%d:%D "${directory}") != $(stat -fc%d:%D "${directory}/..") ]
-	then
-		return 0
-	else
-		return 1
-	fi
+	[ $(stat -fc%d:%D "${directory}") != $(stat -fc%d:%D "${directory}/..") ]
 }

-- 
live-boot



More information about the debian-live-changes mailing list