Commit d8b8adb8 authored by topjohnwu's avatar topjohnwu

Fix is_mounted function

parent f42d8208
......@@ -209,11 +209,8 @@ sign_chromeos() {
}
is_mounted() {
if [ ! -z "$2" ]; then
cat /proc/mounts | grep $1 | grep $2, >/dev/null
else
cat /proc/mounts | grep $1 >/dev/null
fi
TARGET="`resolve_link $1`"
cat /proc/mounts | grep " $TARGET " >/dev/null
return $?
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment