diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-16 21:46:27 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-16 21:46:27 (EST) |
commit | 54e006d2672914418ed92dbeb2f10aa9edc84b0e (patch) | |
tree | 1adfecb30c71a40518567bae6d1499a45385c420 /src/cmd/install.sh | |
parent | 067070e2358e2d2ecc26e7877b2b485829eb5402 (diff) |
cmd/*: Reduce block_umount() calls to one-liners
Diffstat (limited to 'src/cmd/install.sh')
-rw-r--r-- | src/cmd/install.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/install.sh b/src/cmd/install.sh index dcbb3ff..9c1bf46 100644 --- a/src/cmd/install.sh +++ b/src/cmd/install.sh @@ -69,9 +69,7 @@ cmd_install_main() "${cmd_install_opt_a-}" "${cmd_install_opt_p-}" \ "${chroot}" "${foreign}" - if [ "x${dev}" != 'x' ]; then - block_umount "${chroot}" - fi + [ "x${dev}" != 'x' ] && block_umount "${chroot}" } cmd_install_register() |