diff --git a/bin/shell-plugin.js b/bin/shell-plugin.js index ecc9d78..cf502cb 100644 --- a/bin/shell-plugin.js +++ b/bin/shell-plugin.js @@ -12,7 +12,11 @@ const path = require('path'); const JSONStream = require('pixl-json-stream'); const Tools = require('pixl-tools'); -require('dotenv').config() +if(process.env['ENV_FILE']) { + try { + require('dotenv').config({path: process.env['ENV_FILE']}) + } catch { } +} // setup stdin / stdout streams process.stdin.setEncoding('utf8');