From 561ee3fe82ef908018cccc6b5b7449ce1cb87d21 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Mon, 2 May 2022 05:22:41 +0100 Subject: [PATCH] is this gonna work --- resources/circle.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/circle.js b/resources/circle.js index e6349ff5..d62344b3 100644 --- a/resources/circle.js +++ b/resources/circle.js @@ -20,10 +20,7 @@ if (process.env['CIRCLE_BRANCH'] === 'lts') { channel = process.env['CIRCLE_BRANCH'] // It won't have auto update support } - -if (channel.includes('/')) { - channel.replace('/', '-') -} +channel.split('/').join('-') // https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables const version = pkg.version.split('.');