Commit 75baa400 authored by Josua Mayer's avatar Josua Mayer

runme: gracefully continue execution if git configuration is broken

Signed-off-by: default avatarJosua Mayer <josua@solid-run.com>
parent 980b23ae
...@@ -45,7 +45,7 @@ export PATH=$ROOTDIR/build/toolchain/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-lin ...@@ -45,7 +45,7 @@ export PATH=$ROOTDIR/build/toolchain/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-lin
export CROSS_COMPILE=aarch64-linux-gnu- export CROSS_COMPILE=aarch64-linux-gnu-
export ARCH=arm64 export ARCH=arm64
REPO_PREFIX=`git log -1 --pretty=format:%h` REPO_PREFIX=`git log -1 --pretty=format:%h || echo unknown`
echo "Repository prefix for images is $REPO_PREFIX" echo "Repository prefix for images is $REPO_PREFIX"
case "${SERDES}" in case "${SERDES}" in
...@@ -150,10 +150,13 @@ done ...@@ -150,10 +150,13 @@ done
set -e set -e
# Check if git is configured # Check if git is configured
GIT_CONF=`git config user.name` GIT_CONF=`git config user.name || true`
if [ "x$GIT_CONF" == "x" ]; then if [ "x$GIT_CONF" == "x" ]; then
echo "git is not configured. please configure git username and email first" echo "git is not configured! using fake email and username ..."
exit -1 export GIT_AUTHOR_NAME="SolidRun lx2160a_build Script"
export GIT_AUTHOR_EMAIL="support@solid-run.com"
export GIT_COMMITTER_NAME="${GIT_AUTHOR_NAME}"
export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL}"
fi fi
if [[ ! -d $ROOTDIR/build/toolchain ]]; then if [[ ! -d $ROOTDIR/build/toolchain ]]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment