@karmaniverous/get-dotenv 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/getdotenv/index.js +2 -5
- package/package.json +1 -1
package/bin/getdotenv/index.js
CHANGED
|
@@ -136,13 +136,10 @@ if (command || program.args.length) {
|
|
|
136
136
|
.map((c) => parseArgsStringToArgv(c));
|
|
137
137
|
|
|
138
138
|
for (const argv of argvs) {
|
|
139
|
-
const {
|
|
139
|
+
const { status } = spawn.sync(argv[0], argv.slice(1), {
|
|
140
140
|
stdio: 'inherit',
|
|
141
141
|
});
|
|
142
142
|
|
|
143
|
-
if (throwError)
|
|
144
|
-
if (error) throw error;
|
|
145
|
-
if (status) throw new Error(`exited with code ${status}`);
|
|
146
|
-
}
|
|
143
|
+
if (status && throwError) process.exit(status);
|
|
147
144
|
}
|
|
148
145
|
}
|