Merge "Don't use wc -l for the umount check"
This commit is contained in:
commit
1733c5fb92
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user