repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd7ebfa
)
refactor(simulator): simplify skip preinstall test
author
Jérôme Benoit
<jerome.benoit@sap.com>
Wed, 29 Mar 2023 18:51:52 +0000
(20:51 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Wed, 29 Mar 2023 18:51:52 +0000
(20:51 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
skip-preinstall.cjs
patch
|
blob
|
blame
|
history
diff --git
a/skip-preinstall.cjs
b/skip-preinstall.cjs
index fffc7d878fad5f70f6e64e9649ab0b609fade478..6181e5cf63ec7804635203cc560e65c1b41c7204 100644
(file)
--- a/
skip-preinstall.cjs
+++ b/
skip-preinstall.cjs
@@
-1,5
+1,5
@@
-const
isCFEnvironment =
process.env.VCAP_APPLICATION !== undefined;
-if (
process.env.SKIP_PREINSTALL || isCFEnvironment
) {
+const
skipPreinstall = process.env.SKIP_PREINSTALL ||
process.env.VCAP_APPLICATION !== undefined;
+if (
skipPreinstall
) {
// eslint-disable-next-line n/no-process-exit
process.exit(0);
} else {