diff options
| author | Tails developers <amnesia@boum.org> | 2012-04-08 20:26:49 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2012-04-08 22:50:36 +0200 |
| commit | a6bb4149992d6d416ea58f102cb8539ce106de7a (patch) | |
| tree | c3ce83803ce8c8b47d8e4aede86e884dd5986249 /scripts | |
| parent | 8cd3e6c3489df0857579ca52ac291256d38f18cf (diff) | |
| download | live-boot-a6bb4149992d6d416ea58f102cb8539ce106de7a.tar.gz live-boot-a6bb4149992d6d416ea58f102cb8539ce106de7a.zip | |
Removing overkill double-checking of return code in is_mountpoint predicate.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/live-helpers | 7 |
1 files changed, 1 insertions, 6 deletions
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}/..") ] } |
