mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Display warning message when trying to run unexisting suite.
This commit is contained in:
parent
716ae9d378
commit
b3202976f2
|
@ -3,6 +3,7 @@
|
||||||
var program = require('commander');
|
var program = require('commander');
|
||||||
var spawn = require('child_process').spawn;
|
var spawn = require('child_process').spawn;
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
var ListSuites = require('./utils/ListSuites');
|
||||||
|
|
||||||
let suite;
|
let suite;
|
||||||
|
|
||||||
|
@ -16,6 +17,11 @@ if (!suite) {
|
||||||
program.help();
|
program.help();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ListSuites().indexOf(suite) == -1) {
|
||||||
|
console.log("[WARNING] This suite does not exist. Use 'list' command to check the existing suites.");
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
const ENVIRONMENT_FILENAME = '.suite';
|
const ENVIRONMENT_FILENAME = '.suite';
|
||||||
|
|
||||||
let runEnvProcess;
|
let runEnvProcess;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user