Jump to content

Wait till git checkout finished


Recommended Posts

I'm using following workflow:

58a1f6db832a4_AlfredPreferences2017-02-1319-11-07.png.aa926c979703bce4e7d5e53693f1e54f.png

 

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 by daniel_r
Link to post
  • 11 months later...

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. 

 

 

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...