X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=skip-preinstall.js;h=e181f0e008798cb6151a924d13807f4e1d1f8e60;hb=HEAD;hp=8f5c9d5543ea7c16d3a451bd1abb48e83529113e;hpb=b0c4f887c7cbe5168955a360264c0b9dc091b22f;p=e-mobility-charging-stations-simulator.git diff --git a/skip-preinstall.js b/skip-preinstall.js index 8f5c9d55..fb2477d7 100644 --- a/skip-preinstall.js +++ b/skip-preinstall.js @@ -1,10 +1,10 @@ -import { env, exit } from 'node:process'; +import { env, exit } from 'node:process' -const skipPreinstall = env.SKIP_PREINSTALL || env.VCAP_APPLICATION !== undefined; +const skipPreinstall = Number.parseInt(env.SKIP_PREINSTALL) || env.VCAP_APPLICATION != null if (skipPreinstall) { // eslint-disable-next-line n/no-process-exit - exit(); + exit() } else { // eslint-disable-next-line n/no-process-exit - exit(1); + exit(1) }