From 82dc7aa715e6dc370a4c62100333cb9575fdba30 Mon Sep 17 00:00:00 2001 From: Esko Dijk Date: Thu, 4 Jul 2024 23:06:35 +0200 Subject: [PATCH] make-pretty --- ot-rfsim/script/build | 4 ++-- ot-rfsim/script/build_all | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ot-rfsim/script/build b/ot-rfsim/script/build index 37a318f3..a3ef666a 100755 --- a/ot-rfsim/script/build +++ b/ot-rfsim/script/build @@ -67,8 +67,8 @@ build() fi if [[ ${OT_DIR} != "${old_ot_dir}" ]]; then echo "Detected new version build of OpenThread: cleaning build dir." - rm -rf ../${builddir}/* - rm -rf ../${builddir}/.ninja* + rm -rf ../"${builddir}"/* + rm -rf ../"${builddir}"/.ninja* fi echo "${OT_DIR}" >OT_DIR.txt diff --git a/ot-rfsim/script/build_all b/ot-rfsim/script/build_all index 6227ed06..2116253c 100755 --- a/ot-rfsim/script/build_all +++ b/ot-rfsim/script/build_all @@ -39,7 +39,6 @@ main() for VER in v11 v12 v13 latest br; do SCRIPTNAME="./script/build_$VER" FTDNAME="./ot-versions/ot-cli-ftd_$VER" - OT_DIR="" if [ "$VER" == "latest" ]; then FTDNAME="./ot-versions/ot-cli-ftd" fi @@ -48,10 +47,6 @@ main() printf '\n%s: file %s is present, skipping this version build.\n\n' "${VER}" "${FTDNAME}" else printf '%s: building %s' "${VER}" "${FTDNAME}" - if [[ $VER == "v11" || $VER == "v12" || $VER == "v13" ]]; then - OT_DIR="openthread_${VER}" - fi - ${SCRIPTNAME} "${options[@]}" || printf \ '\n********************\n Failed build script: %s - skipping.\n********************\n\n' "${SCRIPTNAME}" fi