From 6716bff8b3a2f922c93acff0c4c7d8f8931c6699 Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Mon, 23 Sep 2024 12:07:36 +0300 Subject: [PATCH] Refactor key generation logic and update path resolving --- .env.example | 2 +- index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index c47718a..9369584 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ #GIT_URI=ssh://git@git.domain/username/example-repo.git GIT_URI=https://:@git.domain/username/example-repo.git GIT_BRANCH=main -#COMMANDS="['npm i','npm start']" \ No newline at end of file +#COMMANDS='["npm i","npm start"]' \ No newline at end of file diff --git a/index.js b/index.js index 3130eba..965dcc8 100644 --- a/index.js +++ b/index.js @@ -158,8 +158,9 @@ async function main() { if (customCommands) { try { customCommands = JSON.parse(customCommands) - } catch { + } catch (err) { console.error("couln't parse commands from .env") + console.log(err.message) customCommands = undefined; } }