Jump to content

Recommended Posts

Hello, 

I want to create a basic workflow (I am a beginner): 

 

1. Select a folder, and run "make"

2. To show as output if the command worked (e.g., there is a makefile in the folder), otherwise to say that the folder didn't have any make file. 

 

So, I have a file action (in this case a folder), and then a script (/bin/bash) with: 

cd "{query}"
make

But, nothing happens. Any ideas and suggestions on how to do this?

Thanks so much!

 

![](https://dl.dropboxusercontent.com/u/18116710/Screenshots/Screenshot_2016-09-16_08.36.3.png)

Edited by Sebastian Daza

Share this post


Link to post

When make fails, it writes the error message to STDERR, which ends up in Alfred's debugger. Alfred passes STDOUT to the next workflow action, i.e. your Post Notification.

 

Not sure about the output of the commands make calls. I think that would depend on how the commands themselves behave.

 

You could try redirecting STDERR to STDOUT with make 2>&1 so everything gets passed to the next workflow action.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...