diff options
author | Thorsten Glaser <tg@mirbsd.org> | 2010-11-20 19:42:19 +0000 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-20 20:43:57 +0100 |
commit | 5121cb5e1cc6242de6040f8d620eb32a65336798 (patch) | |
tree | 918d2920f1b386015d4be89909ae96d57a292eaf /scripts/install.sh | |
parent | ce06162a47a7bfc4ec9d955b5eaa6526996f98c9 (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-x | scripts/install.sh | 3 |
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 |