3

It seems that we can't set negative values with config-set:

drush cset block.block.myblock_name weight '-1' --format=string -y

doesn't work

1 Answer 1

6

The (ugly) work-around is:

echo '-1' | drush cset block.block.myblock_name weight - -y

You don't need to specify that format is string as that is the default.

This seems to be a general problem with Drush commands; values starting with a dash is interpreted as arguments. See bug report for similar issue with vset - https://github.com/drush-ops/drush/issues/378

0

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.