Skip to content

Commit

Permalink
fix support for custom settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothenbuecher committed Dec 7, 2017
1 parent 2b27a80 commit b930910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ if (fs.existsSync("watchdog")) {

var contents = null;

if(args.length >= 2){
console.log("custom settingsfile:", args[1]);
contents = fs.readFileSync(settings.dir + args[1]);
if(args.length >= 2 && args[args.length-1].match(/\.json/)){
console.log("custom settingsfile:", args[args.length-1]);
contents = fs.readFileSync(settings.dir + args[args.length-1]);
}else{
contents = fs.readFileSync(settings.dir + 'settings.json');
}
Expand Down

0 comments on commit b930910

Please sign in to comment.