X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=skip-preinstall.js;h=e181f0e008798cb6151a924d13807f4e1d1f8e60;hb=HEAD;hp=fde48de577488f3eeedf8e8059624676bddda644;hpb=66a7748ddeda8c94d7562a1ce58d440319654a4c;p=e-mobility-charging-stations-simulator.git diff --git a/skip-preinstall.js b/skip-preinstall.js index fde48de5..fb2477d7 100644 --- a/skip-preinstall.js +++ b/skip-preinstall.js @@ -1,6 +1,6 @@ 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()