Skip to content

Commit fbf39b3

Browse files
committed
[circle-mlir/infra] Discard output from the cd command
This commit fixes the issue when `cd` is followed by the `pwd` in a bash one-liner for getting the location of the script. The `cd` command can print the destination directory in case when one has the CDPATH environmental variable set which breaks the one-liner functionality. ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
1 parent e58f9ba commit fbf39b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

circle-mlir/infra/overlay/prepare-venv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fi
3434

3535
set -e
3636

37-
DRIVER_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
37+
DRIVER_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
3838
if [[ -z "$VENV_NAME" ]]; then
3939
VENV_NAME="venv"
4040
fi

circle-mlir/infra/tools/gen-coverage-report

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# COVERAGE_PATH : path where coverage report is generated,
77
# default is ${PROJECT_PATH}/${COVERAGE_RPATH}
88

9-
PROJECT_PATH="$(cd $(dirname ${BASH_SOURCE[0]})/../.. && pwd)"
9+
PROJECT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." >/dev/null && pwd)"
1010

1111
# Set BUILD_WORKSPACE_RPATH with default 'build/coverage' if not set
1212
BUILD_WORKSPACE_RPATH="${BUILD_WORKSPACE_RPATH:-build/coverage}"

0 commit comments

Comments
 (0)