summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLuigi Capriotti <l.capriotti@xbmc.org>2009-06-19 15:07:40 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:05 +0100
commit3da10dcee61c32653acb775a0fc8348ea5287c5a (patch)
treedc9bb24cd97f1268253c18e83e595f147a7fbf52 /scripts
parent54f83dbea9700c6c83a66d8e0543b24c90be256a (diff)
downloadlive-boot-3da10dcee61c32653acb775a0fc8348ea5287c5a.tar.gz
live-boot-3da10dcee61c32653acb775a0fc8348ea5287c5a.zip
Fixing possible invalid results from function where_is_mounted by returning more than one line inwhere_is_mounted();.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/live-helpers2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 79b158c..fbf61fe 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -104,7 +104,7 @@ where_is_mounted ()
if grep -q "^${device} " /proc/mounts
then
# return the first found
- grep "^${device} " /proc/mounts | cut -f2 -d ' '
+ grep -m1 "^${device} " /proc/mounts | cut -f2 -d ' '
fi
}