From: BigfootACA Date: 星期三, 27 Jan 2021 05:09:10 +0000 (+0800) Subject: change build.sh default operation X-Git-Tag: v0.2~9^2 X-Git-Url: https://git.renegade-project.org/?a=commitdiff_plain;h=e4278bcf739a5fce39a3b28f3ab9be167c795bf1;p=edk2-sdm845.git change build.sh default operation --- diff --git a/build.sh b/build.sh index 1f3b776..aa9f0fb 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" @@ -107,9 +108,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}"