element-desktop/scripts/check-webapp.js
David Baker 5a0c1cda22 Files I've added
This still won't work, still a WIP
2019-12-06 18:20:31 +00:00

15 lines
343 B
JavaScript
Executable file

#!/usr/bin/env node
const fs = require('fs').promises;
async function main() {
try {
const webappDir = await fs.opendir('webapp');
return 0;
} catch (e) {
console.log("No 'webapp' directory found. Run 'yarn run fetch' or symlink manually");
return 1;
}
}
main().then((ret) => process.exit(ret));