Skip to content

Use case insensitive grep for checking status #6

@nickchomey

Description

@nickchomey

ddev spx toggle and status aren't working for me as when I just run php -m I see SPX rather than spx.

status=$(php -m | grep 'spx')
if [ "${status}" = "spx" ]; then

This should probably be

  status=$(php -m | grep -i 'spx')
  if [ ! -z "${status}" ]; then

It should work for both upper and lowercase

Same should be done for both status and toggle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions