Skip to content

Commit 934a454

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 934a454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)