daniel_r Posted February 13, 2017 Share Posted February 13, 2017 (edited) I'm using following workflow: This is the terminal command: cd /Applications/MAMP/htdocs/3rdparty/ git clone https://aaaaa.git.beanstalkapp.com/aaaa.git {query} Is there a way to wait till the git clone checkout finishes before the other actions are called? Edit: I assume I could just put everything into my terminal command?!:D Edited February 13, 2017 by daniel_r Link to comment
deanishe Posted February 13, 2017 Share Posted February 13, 2017 Use a Run Script Action with Language = /bin/bash instead of a Terminal Command. Link to comment
daniel_r Posted January 16, 2018 Author Share Posted January 16, 2018 What's the difference between Run script action with language and terminal command? Link to comment
deanishe Posted January 16, 2018 Share Posted January 16, 2018 Run Script runs the script in a subprocess (i.e. you can’t see the output). Terminal Command opens a new shell in your terminal app and pastes the command in there. A Run Script is an integrated part of a workflow. Alfred waits till it has finished before running the next action, and also passes the output to the next action. That’s why you need a Run Script (so Alfred waits till git is done). A Terminal Command is passed off to another application, and Alfred has no idea about anything after that. It can’t tell whether the command succeeded or failed, whether it’s finished or not, or what the output was. Terminal Command is for starting interactive programs or where the user needs to see the output. daniel_r 1 Link to comment
deanishe Posted January 16, 2018 Share Posted January 16, 2018 Also, in future, could you upload your actual workflow somewhere and post a link to it, instead of screenshots and code snippets? Generally, we need the actual workflow to answer questions about it. Screenshots and code snippets aren’t really enough. daniel_r 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now