Skip to content

Commit 649abb4

Browse files
committed
dev-demo: update dev-demo setup script not to overwrite .env file
1 parent 18c95c4 commit 649abb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dev-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"preinstall": "node scripts/check-node.js",
2424
"check-docker": "node scripts/check-docker.js",
2525
"check-task": "node scripts/check-task.js",
26-
"setup-dev-demo": "pnpm preinstall && pnpm check-docker && pnpm check-task && pnpm build-adminforth && cp .env.local .env && pnpm install-plugins && pnpm install-adapters && pnpm install && pnpm link ../adminforth && bash ./scripts/run_inventory.sh"
26+
"setup-dev-demo": "pnpm preinstall && pnpm check-docker && pnpm check-task && pnpm build-adminforth && [ -f .env ] || cp .env.local .env && pnpm install-plugins && pnpm install-adapters && pnpm install && pnpm link ../adminforth && bash ./scripts/run_inventory.sh"
2727
},
2828
"author": "",
2929
"license": "ISC",

0 commit comments

Comments
 (0)