From 90ffa77a0aec57d6f5262c5f3ec4573cb89908da Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Wed, 11 Dec 2024 10:39:59 +0900 Subject: [PATCH] [tools/cross] Fix script option This commit updates script option to return fail by command exit code and disable displaying command. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh --- tools/cross/install_rootfs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cross/install_rootfs.sh b/tools/cross/install_rootfs.sh index c45e45d3c0a..55e20967bea 100755 --- a/tools/cross/install_rootfs.sh +++ b/tools/cross/install_rootfs.sh @@ -81,7 +81,7 @@ for i in "$@" ; do esac done -set -x +set -eo pipefail __RootfsDir="$__CrossDir/rootfs/$__BuildArch" @@ -91,7 +91,7 @@ fi if [ -d "$__RootfsDir" ]; then if [ $__SkipUnmount == 0 ]; then - umount $__RootfsDir/* + umount -q $__RootfsDir/* || true fi rm -rf $__RootfsDir fi @@ -111,7 +111,7 @@ if [[ -n $__LinuxCodeName ]]; then chroot $__RootfsDir symlinks -cr /usr if [ $__SkipUnmount == 0 ]; then - umount $__RootfsDir/* + umount -q $__RootfsDir/* || true fi else echo "Unsupported target platform."