|
@ -372,8 +372,9 @@ async function sync(token) { |
|
|
const now = new Now(apiUrl, token, {debug}) |
|
|
const now = new Now(apiUrl, token, {debug}) |
|
|
|
|
|
|
|
|
let dotenvConfig |
|
|
let dotenvConfig |
|
|
if (argv.dotenv) { |
|
|
const dotenvOption = argv.dotenv ? argv.dotenv : nowConfig.dotenv |
|
|
const dotenvFileName = typeof argv.dotenv === 'string' ? argv.dotenv : '.env' |
|
|
if (dotenvOption) { |
|
|
|
|
|
const dotenvFileName = typeof dotenvOption === 'string' ? dotenvOption : '.env' |
|
|
|
|
|
|
|
|
if (!fs.existsSync(dotenvFileName)) { |
|
|
if (!fs.existsSync(dotenvFileName)) { |
|
|
error(`--dotenv flag is set but ${dotenvFileName} file is missing`) |
|
|
error(`--dotenv flag is set but ${dotenvFileName} file is missing`) |
|
|