From: Tails developers Date: Sun, 8 Apr 2012 18:26:49 +0000 (+0200) Subject: Removing overkill double-checking of return code in is_mountpoint predicate. X-Git-Tag: debian/3.0_a27-1~12 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=a6bb4149992d6d416ea58f102cb8539ce106de7a;p=live-boot-grml.git 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}/..") ] }