Skip to content

Commit

Permalink
Fix calling *_vendors.sh scripts when not in the root of the project
Browse files Browse the repository at this point in the history
If you were in, say, SF_DIR/src/ and call ../install_vendors.sh, it would
create the vendors directory inside SF_DIR/src instead of SF_DIR/.
Also, use the internal $PWD variable instead of calling an external program.
  • Loading branch information
laurentb authored and fabpot committed Feb 13, 2011
1 parent d4d2d60 commit 8684055
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions install_vendors.sh
@@ -1,5 +1,7 @@
#!/bin/sh

cd $(dirname $0)

# initialization
if [ -d "vendor" ]; then
rm -rf vendor/*
Expand Down
4 changes: 3 additions & 1 deletion update_vendors.sh
@@ -1,6 +1,8 @@
#!/bin/sh

CURRENT=`pwd`/vendor
cd $(dirname $0)

CURRENT=${PWD}/vendor

# Doctrine ORM
cd $CURRENT/doctrine && git pull
Expand Down

0 comments on commit 8684055

Please sign in to comment.