hubl/postinstall.js

8 lines
211 B
JavaScript
Raw Normal View History

2019-05-14 15:32:42 +00:00
const fs = require('fs');
const { exec } = require('child_process');
if (!fs.existsSync('src/config.json')) {
const cmd = `rsync -ru src/config.sample.json src/config.json`;
console.log(cmd);
exec(cmd);
}