added share/ to .gitignore; silently ignore acceptable error on setup

pull/29/head
tycrek 3 years ago
parent baf3865b64
commit a9f75dd0b7
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

5
.gitignore vendored

@ -117,4 +117,7 @@ uploads/
config.json config.json
# certificates # certificates
*.crt *.crt
# share/ directory
share/

@ -36,7 +36,7 @@ function doSetup() {
const existingConfig = require('./config.json'); const existingConfig = require('./config.json');
Object.keys(existingConfig).forEach((key) => Object.prototype.hasOwnProperty.call(config, key) && (config[key] = existingConfig[key])) Object.keys(existingConfig).forEach((key) => Object.prototype.hasOwnProperty.call(config, key) && (config[key] = existingConfig[key]))
} catch (ex) { } catch (ex) {
if (ex.code !== 'MODULE_NOT_FOUND') log.error(ex); if (ex.code !== 'MODULE_NOT_FOUND' && !ex.toString().includes('Unexpected end')) log.error(ex);
} }
// Disabled the annoying "prompt: " prefix and removes colours // Disabled the annoying "prompt: " prefix and removes colours

Loading…
Cancel
Save