projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cd3e6c
)
Removing overkill double-checking of return code in is_mountpoint predicate.
author
Tails developers
<amnesia@boum.org>
Sun, 8 Apr 2012 18:26:49 +0000
(20:26 +0200)
committer
Daniel Baumann
<daniel@debian.org>
Sun, 8 Apr 2012 20:50:36 +0000
(22:50 +0200)
scripts/live-helpers
patch
|
blob
|
history
diff --git
a/scripts/live-helpers
b/scripts/live-helpers
index
c6feefe
..
d73f44d
100644
(file)
--- 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}/..") ]
}