Bug fix for reproducible build (#8061)

This commit is contained in:
Shilong Liu 2021-07-06 12:52:45 +08:00 committed by Judy Joseph
parent c200a2a464
commit 0d2b82d38c

View File

@ -57,7 +57,7 @@ main(){
get_clone_path "$@" get_clone_path "$@"
pushd $clone_PATH &> /dev/null pushd $clone_PATH &> /dev/null
commit_latest=`$REAL_COMMAND log -n 1 | head -n 1| awk '{print$2}'` commit_latest=`$REAL_COMMAND log -n 1 | head -n 1| awk '{print$2}'`
[ -f $version_file ] && commit=`grep $URL $version_file | awk -F, '{print$2}'` [ -f $version_file ] && commit=`grep $URL $version_file | awk -F== '{print$2}'`
# control version or record version file # control version or record version file
if [[ $ENABLE_VERSION_CONTROL_GIT == "y" ]];then if [[ $ENABLE_VERSION_CONTROL_GIT == "y" ]];then