Skip to content

Commit 0b41cc8

Browse files
committed
fix: just use test -f for env existence
1 parent 36b9676 commit 0b41cc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"http-server": "http-server ./deploy/release/ -p 8080 --cors",
2323
"// Environment management": "",
2424
"env:init": "cp .env.example .env",
25-
"env:validate": "node -e \"require('fs').existsSync('.env') || (console.error('Error: .env file missing. Run npm run env:init first') && process.exit(1))\"",
25+
"env:validate": "test -f .env || (echo 'Error: .env file missing. Run npm run env:init first' && exit 1)",
2626
"env:clean": "rm -f .env",
2727
"// Composite commands": "",
2828
"start": "npm run env:validate && npm run docker:build-and-run",
@@ -31,7 +31,7 @@
3131
"wc:clean": "rm -r ./source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/*",
3232
"wc:watch": "cpx -w -v \"../web/.nuxt/nuxt-custom-elements/dist/unraid-components/**/*\" ./source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components",
3333
"api:watch": "cpx -w -C -v \"../api/deploy/pre-pack/**/*\" ./source/dynamix.unraid.net/usr/local/unraid-api",
34-
"ui:watch": "cpx -w -v \"../unraid-ui/dist/**/*\" ./source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components",
34+
"ui:watch": "cpx -w -v \"../unraid-ui/dist/**/*\" ./source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components",
3535
"watch:all": "npm run wc:clean && npm run wc:watch & npm run api:watch & npm run ui:watch"
3636
},
3737
"devDependencies": {

0 commit comments

Comments
 (0)