From 39be44434a1c82ffacb031d9395645b9439e625c Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 21 May 2018 20:39:52 -0600 Subject: [PATCH] Ensure all number groups work --- core/oputil/oputil_user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/oputil/oputil_user.js b/core/oputil/oputil_user.js index 36762edb..59813b3b 100644 --- a/core/oputil/oputil_user.js +++ b/core/oputil/oputil_user.js @@ -109,7 +109,7 @@ function modUserGroups(user) { 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 - if('-' === action || '+' === action) {