Skip release if CMakeLists.txt not present at all

instead of stopping the whole script
This commit is contained in:
Martchus 2019-08-24 17:28:48 +02:00
parent d8be7d61c1
commit 92c19bb936
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ do
echo "NEXT: $project -> $version"
# check whether CMakeLists.txt has been updated
cmake_lists=$(wget -qO- "https://raw.githubusercontent.com/$gh_user/$gh_name/master/CMakeLists.txt")
cmake_lists=$(wget -qO- "https://raw.githubusercontent.com/$gh_user/$gh_name/master/CMakeLists.txt" || echo -n '')
major_version_regex='set\(META_VERSION_MAJOR ([^\)]*)\)'
minor_version_regex='set\(META_VERSION_MINOR ([^\)]*)\)'
patch_version_regex='set\(META_VERSION_PATCH ([^\)]*)\)'