From fab87df78f1fb0e1fc62c642c59a1a682ddd9845 Mon Sep 17 00:00:00 2001 From: gquence Date: Sat, 6 May 2023 18:35:39 +0300 Subject: [PATCH 1/2] Added possibility to compile without files and interactive-mode --- build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build b/build index e32c86f..e868bfd 100755 --- a/build +++ b/build @@ -81,8 +81,11 @@ select_boards() "orangepizero3" "orangepir1plus-lts" "orangepir1plus") - - if [[ -f /etc/orangepi-release ]]; then + TMP_BOARD=$(printenv BOARD) + if [[ ! -z $TMP_BOARD ]]; then + export BOARD=$TMP_BOARD + echo $BOARD + elif [[ -f /etc/orangepi-release ]]; then source /etc/orangepi-release From da4d8ba72786dc08f08f210ea3c7003f12b93d6f Mon Sep 17 00:00:00 2001 From: gquence Date: Sat, 6 May 2023 18:43:14 +0300 Subject: [PATCH 2/2] corrected indentation --- build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build b/build index e868bfd..8e5a642 100755 --- a/build +++ b/build @@ -81,10 +81,10 @@ select_boards() "orangepizero3" "orangepir1plus-lts" "orangepir1plus") - TMP_BOARD=$(printenv BOARD) - if [[ ! -z $TMP_BOARD ]]; then - export BOARD=$TMP_BOARD - echo $BOARD + TMP_BOARD=$(printenv BOARD) + if [[ ! -z $TMP_BOARD ]]; then + export BOARD=$TMP_BOARD + echo $BOARD elif [[ -f /etc/orangepi-release ]]; then source /etc/orangepi-release