From 1f0f6de00bfbfedc39d533645244ccef71e51855 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 09 Dec 2014 00:16:16 -0500 Subject: Suppress grep output --- 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 -- cgit v0.9.1