0

Role name "teaching assistant"

command executed is:

drush @comply-all urol "teaching assistant" sdf --y

if I copy and paste this it works fine. if the following command is called from a bash script it bricks every time when encapsulating the role name (which is needed otherwise it's evaluated by drush as two different arguments). Anyone experience anything similar?

[ulmusdrush@localhost ~]$ exception 'Drush\Role\RoleException' with message 'Could not find the role: "teaching' in          [error]
/home/ulmusdrush/.composer/vendor/drush/drush/lib/Drush/Role/RoleBase.php:46
Stack trace:
#0 [internal function]: Drush\Role\RoleBase->__construct('"teaching')
#1 /home/ulmusdrush/.composer/vendor/drush/drush/includes/drush.inc(113):
ReflectionClass->newInstanceArgs(Array)
#2 /home/ulmusdrush/.composer/vendor/drush/drush/commands/core/role.drush.inc(273):
drush_get_class('Drush\\Role\\Role', Array)
#3 /home/ulmusdrush/.composer/vendor/drush/drush/commands/user/user.drush.inc(281):
drush_role_get_class('"teaching')
#4 [internal function]: drush_user_add_role('"teaching', 'assistant"', 'qwe')
#5 /home/ulmusdrush/.composer/vendor/drush/drush/includes/command.inc(359):
call_user_func_array('drush_user_add_...', Array)
#6 /home/ulmusdrush/.composer/vendor/drush/drush/includes/command.inc(210):
_drush_invoke_hooks(Array, Array)
#7 [internal function]: drush_command('"teaching', 'assistant"', 'qwe')
#8 /home/ulmusdrush/.composer/vendor/drush/drush/includes/command.inc(178):
call_user_func_array('drush_command', Array)
#9 /home/ulmusdrush/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(62):
drush_dispatch(Array)
#10 /home/ulmusdrush/.composer/vendor/drush/drush/drush.php(70):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#11 /home/ulmusdrush/.composer/vendor/drush/drush/drush.php(11): drush_main()
#12 {main}

1 Answer 1

0

Use

drush @comply-all urol "teaching\ assistant" sdf --y

Might be helpful to you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.