From 4303477fa5866a50a5499523efd8cffe3eab9e2e Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Mon, 1 Aug 2022 15:06:10 +0100 Subject: [PATCH] PLEASEEEE --- resources/version.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/version.sh b/resources/version.sh index 47e84eed..da3b2dfc 100755 --- a/resources/version.sh +++ b/resources/version.sh @@ -4,9 +4,9 @@ git rev-list origin..HEAD # DEBUGGING -LATEST_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | cut -d' ' -f1 | head -n 1) -echo $LATEST_SHA -COMMITSINCESTABLE=$(git rev-list 099e41264817ead26607e4552317488378146d0e..HEAD --count) +STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | cut -d' ' -f1 | head -n 1) +echo $STABLE_SHA +COMMITSINCESTABLE=$(git rev-list $STABLE_SHA..$GITHUB_SHA --count) echo $COMMITSINCESTABLE CURRENT_VERSION=$(node -p -e "require('./package.json').version") echo $CURRENT_VERSION