Jump to content

run make workflow


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
Link to comment

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.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...