Fix is_mounted function

This commit is contained in:
topjohnwu 2017-11-22 22:22:29 +08:00
parent f42d820891
commit d8b8adb88c

View File

@ -209,11 +209,8 @@ sign_chromeos() {
} }
is_mounted() { is_mounted() {
if [ ! -z "$2" ]; then TARGET="`resolve_link $1`"
cat /proc/mounts | grep $1 | grep $2, >/dev/null cat /proc/mounts | grep " $TARGET " >/dev/null
else
cat /proc/mounts | grep $1 >/dev/null
fi
return $? return $?
} }