diff options
-rw-r--r-- | debeagle.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debeagle.sh b/debeagle.sh index 6b9b575..ecb7588 100644 --- a/debeagle.sh +++ b/debeagle.sh @@ -60,6 +60,9 @@ main() else error 1 'Device %s not found\n' "${target}" fi + if grep "^${target}" /proc/mounts; then + error 1 'Device %s mounted\n' "${target}" + fi } print_usage() |