We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8ee33 commit 9af4567Copy full SHA for 9af4567
lib/read-credentials-file.ts
@@ -6,6 +6,10 @@ import path = require('path');
6
const filename: string = 'ibm-credentials.env';
7
8
export function readCredentialsFile() {
9
+ if (!fs.existsSync) {
10
+ return {};
11
+ }
12
+
13
// first look for an env variable called IBM_CREDENTIALS_FILE
14
// it should be the path to the file
15
@@ -48,4 +52,4 @@ export function constructFilepath(filepath): string {
48
52
}
49
53
50
54
return filepath;
51
-}
55
+}
0 commit comments