From 702a1bad01e496fd9a7499f7c4f29b43e4f6aa8c Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 8 Nov 2021 15:21:44 +0100 Subject: [PATCH] build_image: Drop the dead test The `if` condition was always true - the `skip_test_build_root` variable is not defined anywhere, so it evaluates to an empty string, which is always different from "1". --- build_image | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build_image b/build_image index 8fe2e9e26a..8f431b3e3b 100755 --- a/build_image +++ b/build_image @@ -126,10 +126,8 @@ for arg in "$@"; do done # Check that the build root is sane. -if [[ ${skip_test_build_root} -ne 1 ]]; then - info "Checking build root" - test_image_content "${BOARD_ROOT}" -fi +info "Checking build root" +test_image_content "${BOARD_ROOT}" # Handle existing directory. if [[ -e "${BUILD_DIR}" ]]; then