Merge "Don't use wc -l for the umount check"

This commit is contained in:
Jenkins 2016-01-29 04:35:27 +00:00 committed by Gerrit Code Review
commit 1733c5fb92
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ fi
# umount devices
unmount_dir $TMP_MOUNT_PATH
if [ $(grep "$TMP_DIR" /proc/mounts | wc -l) -ne 0 ]; then
if grep -q "$TMP_DIR" /proc/mounts; then
echo "*** FAILED due to mounts being left behind"
return 1
else