summaryrefslogtreecommitdiff
path: root/scripts/install.sh
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2010-11-20 19:42:19 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-20 20:43:57 +0100
commit5121cb5e1cc6242de6040f8d620eb32a65336798 (patch)
tree918d2920f1b386015d4be89909ae96d57a292eaf /scripts/install.sh
parentce06162a47a7bfc4ec9d955b5eaa6526996f98c9 (diff)
gnaw… pipes are executed in subshells, so an exit has no effect
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-xscripts/install.sh3
1 files changed, 2 insertions, 1 deletions
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