From 3da10dcee61c32653acb775a0fc8348ea5287c5a Mon Sep 17 00:00:00 2001 From: Luigi Capriotti Date: Fri, 19 Jun 2009 15:07:40 +0200 Subject: Fixing possible invalid results from function where_is_mounted by returning more than one line inwhere_is_mounted();. --- scripts/live-helpers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 } -- cgit v1.2.3