Skip to content

Commit 645d3cc

Browse files
committed
fix conversion script
1 parent 2a50a63 commit 645d3cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ci/utilities/convert_msys_paths_to_win_paths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ def main(parsed_args: argparse.Namespace):
7979
parser.add_argument('--convert',
8080
nargs='+',
8181
required=True,
82-
help='Space separated list of variables and values to convert. E.g: --convert foo=/path/to/bar')
82+
help='Space separated list of environment variables to convert. E.g: --convert env_var1 env_var2')
8383
parser.add_argument('--exclude',
8484
nargs='*',
85-
help='Optional list of variables to exclude')
85+
help='Optional space separated list of environment variables to exclude')
8686
args = parser.parse_args()
8787

8888
main(args)

ci/utilities/setup_build_environment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ fi
7373
# For Windows, convert MSYS Linux-like paths to Windows paths.
7474
if [[ $(uname -s) =~ "MSYS_NT" ]]; then
7575
echo 'Converting MSYS Linux-like paths to Windows paths (for Docker, Python, etc.)'
76-
# Convert all "_DIR" variables to Windows paths.
77-
source <(python3 ./ci/utilities/convert_msys_paths_to_win_paths.py --convert $(env | grep "JAXCI.*DIR"))
76+
# Convert all "JAXCI.*DIR" variables
77+
source <(python3 ./ci/utilities/convert_msys_paths_to_win_paths.py --convert $(env | grep "JAXCI.*DIR" | awk -F= '{print $1}'))
7878
fi

0 commit comments

Comments
 (0)