Skip to content

Commit

Permalink
create directory only if it doesn't already exists (#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
savingoyal authored Sep 20, 2024
1 parent 3209d70 commit 288ff5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaflow/plugins/pypi/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
# TODO: micromamba installation can be pawned off to micromamba.py
f"""set -e;
if ! command -v micromamba >/dev/null 2>&1; then
mkdir micromamba;
mkdir -p micromamba;
python -c "import requests, bz2, sys; data = requests.get('https://micro.mamba.pm/api/micromamba/{architecture}/1.5.7').content; sys.stdout.buffer.write(bz2.decompress(data))" | tar -xv -C $(pwd)/micromamba bin/micromamba --strip-components 1;
export PATH=$PATH:$(pwd)/micromamba;
if ! command -v micromamba >/dev/null 2>&1; then
Expand Down

0 comments on commit 288ff5c

Please sign in to comment.