Browse Source

gnaw… pipes are executed in subshells, so an exit has no effect

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 15 years ago
parent
commit
5121cb5e1c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/install.sh

+ 2 - 1
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