change build.sh default operation
authorBigfootACA <bigfoot@classfun.cn>
星期三, 27 Jan 2021 05:09:10 +0000 (13:09 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期三, 27 Jan 2021 05:09:10 +0000 (13:09 +0800)
build.sh

index 1f3b7769de22194b449b7b8db227e42b7b9b6129..aa9f0fb0425f44a6b45050af39bbcf3239ef03da 100755 (executable)
--- 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}"