diff --git a/prod_build/linux/debian/scripts/pre-build.sh b/prod_build/linux/debian/scripts/pre-build.sh index a5edcfbc05e59db10b693fe7f5c38e4efe5fa55f..5f9ce9337ecaec55eed1117c5dbaae342e5aac67 100755 --- a/prod_build/linux/debian/scripts/pre-build.sh +++ b/prod_build/linux/debian/scripts/pre-build.sh @@ -92,8 +92,9 @@ extract_version_number ### cause information from this changelog (version) is used to write package metadata. And we had messed up for a long time because of desyncing. ### This is a solution. We modify the changelog only if there are updates and not on build servers. And of course if it's not cmake-based build project. ### let's keep those comments here for a while - -if [ $( gitlab-runner -v 2> /dev/null ; echo $? ) == 0 ]; then +NOTONBUILDSERVER=0 +gitlab-runner -v 2&>>/dev/null || NOTONBUILDSERVER=$? +if [ $NOTONBUILDSERVER == 0 ]; then echo "[WRN] on build platform. Version won't be changed" # okay, so this echo wont be outputted as the condition is not true elif [ ! -e debian/changelog ]; then ### I guess this what's supposed to be added in order to solve the issue with the changelog?+