X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=skip-preinstall.js;h=fb2477d707f2b57a8f3bb0760a775a92f13ee5b2;hb=40f37d8ec1d1b46e61c2513d17a4fc30c4a45910;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()