fix build.sh shellcheck SC2155
authorBigfootACA <bigfoot@classfun.cn>
星期六, 27 Mar 2021 15:40:22 +0000 (23:40 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期五, 2 Jul 2021 08:30:14 +0000 (16:30 +0800)
build.sh

index e5f8dc9d318a3e02062640f2d2a2df3f0cae362a..129d978d9ea598b7a067dbab60bb43fbe5d44e65 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -137,7 +137,8 @@ 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 --always)"
+GITCOMMIT="$(git describe --tags --always)"||GITCOMMIT="unknown"
+export GITCOMMIT
 echo > ramdisk
 set -e
 python3 assets/generate-logo.py "${GITCOMMIT}"