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; } }