From 5121cb5e1cc6242de6040f8d620eb32a65336798 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Sat, 20 Nov 2010 19:42:19 +0000 Subject: gnaw… pipes are executed in subshells, so an exit has no effect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thorsten Glaser --- scripts/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/install.sh b/scripts/install.sh index 87fef1373..c7ab63eaa 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -173,7 +173,8 @@ case $ostype { ;; } -mount | while read dev rest; do +mount |& +while read -p dev rest; do eval [[ \$dev = $match ]] || continue print -u2 "Block device $tgt is in use, please umount first." exit 1 -- cgit v1.2.3