fix build.sh for GitHub CI
authorBigfootACA <bigfoot@classfun.cn>
星期一, 22 Mar 2021 05:00:39 +0000 (13:00 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期五, 2 Jul 2021 08:30:13 +0000 (16:30 +0800)
build.sh

index 70bef8b8be9a66bdcaf5c170249257668e4555d1..add8791181833bf87c9ad6e644234c7b2b1a0243 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -133,10 +133,10 @@ echo "EDK2_PLATFORMS Path: ${_EDK2_PLATFORMS}"
 export GCC5_AARCH64_PREFIX="${CROSS_COMPILE:-aarch64-linux-gnu-}"
 export PACKAGES_PATH="$_EDK2:$_EDK2_PLATFORMS:$PWD"
 export WORKSPACE="${PWD}/workspace"
-export GITCOMMIT=`git describe --tags`
+export GITCOMMIT="$(git describe --tags --always)"
 echo > ramdisk
 set -e
-python3 assets/generate-logo.py ${GITCOMMIT}
+python3 assets/generate-logo.py "${GITCOMMIT}"
 if [ "${DEVICE}" == "all" ]
 then   E=0
        for i in "${DEVICES[@]}"