Skip to content

Commit

Permalink
Don't try to run the clone code if the directory already exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Nov 30, 2009
1 parent 6798df5 commit d605b8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ ${DIST_DIR}:

init:
@@echo "Grabbing external dependencies..."
@@git clone git://github.com/jquery/qunit.git test/qunit
@@git clone git://github.com/jeresig/sizzle.git src/sizzle
@@cd src/sizzle && git pull origin master
@@cd test/qunit && git pull origin master
@@if test ! -d test/qunit; then git clone git://github.com/jquery/qunit.git test/qunit; fi
@@if test ! -d src/sizzle; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi
@@cd src/sizzle && git pull origin master &> /dev/null
@@cd test/qunit && git pull origin master &> /dev/null

jquery: ${DIST_DIR} selector ${JQ}

Expand Down

0 comments on commit d605b8e

Please sign in to comment.