Created
January 12, 2010 22:24
-
-
Save tobiassjosten/275690 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Expand globs to null when there are no matches | |
shopt -s nullglob | |
# Look for either a '<subdir>/console' or a 'symfony' file | |
until | |
file=(*/console symfony); [[ -f "$file" ]] && php "$file" "$@" && exit; | |
do | |
[[ "$PWD" == "/" ]] && break; | |
cd .. | |
done | |
echo 'No Symfony file could be found!' |
Enjoy! :)
it is not clear if this is the last version or not
I guess this is the last version, I have another version at http://www.craftitonline.com
Why would it not be the latest version? Take a look at the top right for the revision list.
Also that is not "another version" you have at your blog. It is my script, blatantly plagiarized, with poor understanding of the code and no improvements. Please use the built-in fork feature here at GitHub if you feel like actually contributing.
yeah I am planning on changing it more, WIP
sorry for publishing, i will turn it into draft
…On Sat, Jul 16, 2011 at 4:40 AM, tobiassjosten ***@***.*** wrote:
Why would it not be the latest version? Take a look at the top right for the revision list.
Also that is not "another version" you have at your blog. It is my script, blatantly plagiarized, with poor understanding of the code and no improvements. Please use the built-in fork feature here at GitHub if you feel like actually contributing.
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/275690
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that's a great little piece of code! thanks!