diff options
-rw-r--r-- | debeagle.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debeagle.sh b/debeagle.sh index 6b62498..e1d11eb 100644 --- a/debeagle.sh +++ b/debeagle.sh @@ -205,7 +205,7 @@ make_parts_and_fs() else error 1 'Device %s not found\n' "${target}" fi - if grep "^${target}" /proc/mounts; then + if grep "^${target}" /proc/mounts >/dev/null 2>&1; then error 1 'Device %s mounted\n' "${target}" fi |