Procházet zdrojové kódy

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

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser před 15 roky
rodič
revize
5121cb5e1c
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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