nitrammit Posted March 16, 2013 Share Posted March 16, 2013 (edited) Hello, all. I'm having a fiddle with Alfred 2's new workflows. I'm trying to create one that helps me launch a new project/website using one of my boilerplate repos hosted on GitHub. I am running the following shell script but my repos are not being pulled. cd ~/Sites git clone https://github.com/nitrammit/Launch-HTML5.git {query} cd {query} rm -rf .git README.md Does anyone have any ideas? It works fine as a Terminal Command, but can I use this inside Run Script too? Edited March 16, 2013 by nitrammit Link to comment
jdfwarrior Posted March 16, 2013 Share Posted March 16, 2013 Hello, all. I'm having a fiddle with Alfred 2's new workflows. I'm trying to create one that helps me launch a new project/website using one of my boilerplate repos hosted on GitHub. I am running the following shell script but my repos are not being pulled. cd ~/Sites git clone https://github.com/nitrammit/Launch-HTML5.git {query} cd {query} rm -rf .git README.md Does anyone have any ideas? It works fine as a Terminal Command, but can I use this inside Run Script too? The scripts usually don't import your profile so they don't know what ~ in a path is. You could try doing something like.. myhome=$(printf "$HOME"); cd "$myhome/Sites"; I haven't tested that, but I think that's probably the issue. Let me know if that resolves the issue. If not I help you keep poking at it until we find the problem. 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