qrush / sub

a delicious way to organize programs
http://37signals.com/svn/posts/3264-automating-with-convention-introducing-sub
MIT License
1.74k stars 148 forks source link

prepare.sh fails if arguments starts with 'sub' #8

Closed freegenie closed 11 years ago

freegenie commented 11 years ago

Hi, weird bug, but somebody else may start playing around with this by naming his first sub with something starting with 'sub'.

Tried this a couple of times:

./prepare.sh subfoo
Preparing your 'subfoo' sub!
rm: bin/sub: No such file or directory
freegenie commented 11 years ago

ok let's close this. I realized is a by-design constraint. You just can't run the prepare script with a sub name starting with 'sub' because the repo uses 'sub' named files as a template.

freegenie commented 11 years ago

Maybe it's worth to change the script and guard and exit with a message.