1
0
Просмотр исходного кода

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

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 15 лет назад
Родитель
Сommit
5121cb5e1c
1 измененных файлов с 2 добавлено и 1 удалено
  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
 	eval [[ \$dev = $match ]] || continue
 	print -u2 "Block device $tgt is in use, please umount first."
 	print -u2 "Block device $tgt is in use, please umount first."
 	exit 1
 	exit 1