Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$THEMEPATH fails on OSX resulting in grep of stdin #8

Open
seanr opened this issue Aug 14, 2013 · 5 comments
Open

$THEMEPATH fails on OSX resulting in grep of stdin #8

seanr opened this issue Aug 14, 2013 · 5 comments
Labels

Comments

@seanr
Copy link

seanr commented Aug 14, 2013

When running ./drupal_audit.sh from my Drupal root on OSX, this apparently doesn't work:

THEMEPATH=$(drush $SITE_ALIAS php-eval "echo drupal_get_path('theme', '$i');")

So when it gets here:

COUNT=$(grep -r function $THEMEPATH | wc -l)

I end up with "grep: warning: recursive search of stdin" and the script hangs. Everything up to that point works fine. This is the last item in the log:

----------------------------------------
  Themes status
----------------------------------------
# Theme: panopoly_theme
  Templates count:        0

Obviously, template count failed due to the same path issue, hence 0 results.

@simongeorges
Copy link
Member

I've raised the issue to a friend with OSX, let's see what comes of it. Thanks for the report!

@SebCorbin
Copy link

panopoly_theme is a module, how come it detects it as a theme?

@simongeorges
Copy link
Member

Oh... it seems the "drush pml | grep Theme" is not case sensitive...

@seanr
Copy link
Author

seanr commented Aug 24, 2013

That's very strange, because even the OSX docs state that grep is case sensitive by default and it doesn't look like you're using the -i flag.

@simongeorges
Copy link
Member

Are you sure you don't have an alias on "grep -i" for grep defined somewhere? Can you perform some tests by directly using the commands "drush pml | grep Theme" && "drush pml | grep theme" on your system ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants