From c01e4ea9814d463d4454cd217e7ac580e9f7fba6 Mon Sep 17 00:00:00 2001 From: yazninja Date: Thu, 28 Jul 2022 13:59:04 +0800 Subject: [PATCH] fix versioning --- resources/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/version.sh b/resources/version.sh index deb492ca..b4cea894 100755 --- a/resources/version.sh +++ b/resources/version.sh @@ -1,6 +1,6 @@ #!/bin/bash -LATEST_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs) +LATEST_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | awk '{print $1;}') COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count) CURRENT_VERSION=$(node -p -e "require('./package.json').version") if [[ $CIRCLE_BRANCH == "main" && $COMMITSINCESTABLE -gt 0 ]]; then