From 64c5bc30d10c2fcb302afeeaabbda50cc5f8985a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Wed, 12 Jan 2022 12:18:18 +0100 Subject: [PATCH] Update update-version.yml --- .github/workflows/update-version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 6018de52..8542b068 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -83,7 +83,7 @@ jobs: CURRENT_VERSION=$(cat VERSION) NEW_VERSION="${CURRENT_VERSION%%-trunk}" if [[ "$CURRENT_VERSION" == *trunk* ]]; then - NEW_VERSION=$(echo "${CURRENT_VERSION}" | cut -d. -f1-3)"."$(printf "%04d\n" $(("${NEW_VERSION##*.}" + 1))) + NEW_VERSION=$(echo "${CURRENT_VERSION}" | cut -d. -f1-3)"."$(printf "%04d\n" $(("#${NEW_VERSION##*.}" + 1))) else echo "test" #NEW_VERSION=$(echo "${CURRENT_VERSION}" | cut -d. -f1-2)"."$((${NEW_VERSION##*.} + 1))