Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix calling *_vendors.sh scripts when not in the root of the project
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
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/sh | ||
|
||
cd $(dirname $0) | ||
|
||
# initialization | ||
if [ -d "vendor" ]; then | ||
rm -rf vendor/* | ||
|
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