change build.sh default operation
authorbigfoot <bigfoot@classfun.cn>
星期二, 19 Jan 2021 07:12:18 +0000 (15:12 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期五, 2 Jul 2021 08:29:19 +0000 (16:29 +0800)
build.sh

index 7248b685ac116e262e2ef1977d0413b5fceb2e04..73c1346d7ee12760643b211843ed9389db66e5aa 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"
@@ -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}"