From 54e006d2672914418ed92dbeb2f10aa9edc84b0e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 16 Jan 2016 21:46:27 -0500 Subject: cmd/*: Reduce block_umount() calls to one-liners --- (limited to 'src/cmd/shell.sh') diff --git a/src/cmd/shell.sh b/src/cmd/shell.sh index f062a0e..e761f55 100644 --- a/src/cmd/shell.sh +++ b/src/cmd/shell.sh @@ -49,9 +49,7 @@ cmd_shell_main() fi session_end - if [ "x${dev}" != 'x' ]; then - block_umount "${root}" - fi + [ "x${dev}" != 'x' ] && block_umount "${root}" } cmd_shell_register() -- cgit v0.9.1