Skip to content

Commit

Permalink
Fix sourcing the pull-all script from some location other than tools/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Aug 29, 2013
1 parent 01d4219 commit 8749e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pull-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Check if cwd/tools/bin/pull-all exists, use that if it does
# this way, a random download of pull-all is always correct
if [ -x "tools/bin/pull-all.sh" ] && ! [ "$0" -ef "tools/bin/pull-all.sh" ]; then
if [ `basename $0` == "pull-all.sh" ] && [ -x "tools/bin/pull-all.sh" ] && ! [ "$0" -ef "tools/bin/pull-all.sh" ]; then
echo "exec'ing more up-to-date copy"
exec tools/bin/pull-all.sh "$@"
fi
Expand Down

0 comments on commit 8749e64

Please sign in to comment.