From f2e4851da83a1db6f67cb64ce65dc802cc4cf66c Mon Sep 17 00:00:00 2001 From: bigfoot Date: Tue, 19 Jan 2021 15:12:18 +0800 Subject: [PATCH] change build.sh default operation --- build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 7248b68..73c1346 100755 --- a/build.sh +++ b/build.sh @@ -57,6 +57,7 @@ do case "${1}" in *)_help 1;; esac done +[ -z "${DEVICE}" ]&&_help 1 if ! [ -f edk2/edksetup.sh ] || ! [ -f ../edk2/edksetup.sh ] then set -e echo "Updating submodules" @@ -105,9 +106,7 @@ export WORKSPACE="${PWD}/workspace" echo > ramdisk set -e python3 assets/generate-logo.py -if [ -z "${DEVICE}" ] -then _help 1 -elif [ "${DEVICE}" == "all" ] +if [ "${DEVICE}" == "all" ] then E=0 for i in "${DEVICES[@]}" do echo "Building ${i}" -- 2.45.2