Skip to content

Commit

Permalink
shellplug ENV_FILE option
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 authored Feb 11, 2021
1 parent 197e82e commit 24944cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/shell-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 24944cf

Please sign in to comment.