diff --git a/tools/scripts/changelog.sh b/tools/scripts/changelog.sh index 64ba9067..39186eac 100755 --- a/tools/scripts/changelog.sh +++ b/tools/scripts/changelog.sh @@ -41,7 +41,7 @@ cd ${PROJECT_ROOT_PATH} #============================ echo "-------------- generate latest release version tag --------------" LATEST_RELEASE_VERISON=$(curl --retry 10 -s https://api.github.com/repos/spidernet-io/spiderpool/releases | grep '"tag_name":' | grep -Eo "v([0-9]+\.[0-9]+\.[0-9])" | sort -r | head -n 1) -LATEST_RELEASE_VERISON=` grep -oE "[0-9]+\.[0-9]+\.[0-9]+" <<< "${LATEST_RELEASE_VERISON}" ` +LATEST_RELEASE_VERISON=` grep -oE "[0-9]+\.[0-9]+\.[0-9]+" <<< "${LATEST_RELEASE_VERISON}" ` || true if [ -z "${LATEST_RELEASE_VERISON}" ] ; then LATEST_X=0 LATEST_Y=0