Ensure all number groups work
This commit is contained in:
parent
407f38d148
commit
39be44434a
|
@ -109,7 +109,7 @@ function modUserGroups(user) {
|
||||||
return printUsageAndSetExitCode(getHelpFor('User'), ExitCodes.ERROR);
|
return printUsageAndSetExitCode(getHelpFor('User'), ExitCodes.ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
let groupName = argv._[argv._.length - 1].replace(/["']/g, ''); // remove any quotes - necessary to allow "-foo"
|
let groupName = argv._[argv._.length - 1].toString().replace(/["']/g, ''); // remove any quotes - necessary to allow "-foo"
|
||||||
let action = groupName[0]; // + or -
|
let action = groupName[0]; // + or -
|
||||||
|
|
||||||
if('-' === action || '+' === action) {
|
if('-' === action || '+' === action) {
|
||||||
|
|
Loading…
Reference in New Issue