Skip to content

Commit

Permalink
Suppress output of cd command, in case CDPATH environment variable is…
Browse files Browse the repository at this point in the history
… set; fixes #3359
  • Loading branch information
mernst authored Jun 8, 2020
1 parent 4ecaa4c commit b16be6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

echo "Entering $(cd "$(dirname "$0")" && pwd -P)/$(basename "$0") in $(pwd)"
echo "Entering $(cd "$(dirname "$0")" >/dev/null 2>&1 && pwd -P)/$(basename "$0") in $(pwd)"


# Fail the whole script if any command fails
Expand Down Expand Up @@ -71,4 +71,4 @@ case $GROUP in
esac


echo Exiting "$(cd "$(dirname "$0")" && pwd -P)/$(basename "$0") in $(pwd)"
echo Exiting "$(cd "$(dirname "$0")" >/dev/null 2>&1 && pwd -P)/$(basename "$0") in $(pwd)"
4 changes: 2 additions & 2 deletions checker/bin-devel/test-cf-inference.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ source "$SCRIPTDIR"/build.sh
## script rather than in ./test/downstream.sh because it is most likely to fail,
## and it's helpful to see that only it, not other downstream tests, failed.

/tmp/$USER/plume-scripts/git-clone-related typetools checker-framework-inference
"/tmp/$USER/plume-scripts/git-clone-related" typetools checker-framework-inference

export AFU="${AFU:-$(cd ../annotation-tools/annotation-file-utilities && pwd -P)}"
export AFU="${AFU:-$(cd ../annotation-tools/annotation-file-utilities >/dev/null 2>&1 && pwd -P)}"
export PATH=$AFU/scripts:$PATH
(cd ../checker-framework-inference && ./.travis-build.sh)

0 comments on commit b16be6f

Please sign in to comment.