Skip to content

Commit

Permalink
Updating directory checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed Jan 20, 2014
1 parent ea2f936 commit 81afac3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SetupEnvironment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ if [ -n "$TRAVIS" ]; then

echo 'Travis config not yet written'

if [ ! -d "$DIR" ]; then
if [ ! -d "$DIR/resources" ]; then
DIR="$( dirname $(find ./ -name 'SetupEnvironment.sh') )"
DIR="$( dirname $(find $TRAVIS_BUILD_DIR -name '.dovecottestingmark') )"
fi

if [ ! -d "$DIR" ]; then
if [ ! -d "$DIR/resources" ]; then
DIR="$( dirname $(find $TRAVIS_BUILD_DIR -name 'SetupEnvironment.sh') )"
fi

Expand Down

0 comments on commit 81afac3

Please sign in to comment.