Skip to content

Commit

Permalink
header.sh: Ensure error mesage is emitted when $HOME is not writable (#…
Browse files Browse the repository at this point in the history
…669)

* header.sh: Ensure error mesage is emitted when $HOME is not writable

I am not familar with this project's Issue/PR process.

I place this one line change in the public domain and do not require
any attribution.

conda/conda#12642
ContinuumIO/anaconda-issues#13189

CLA should be completed now.

* Add some comments

* add news [skip ci]

---------

Co-authored-by: jaimergp <[email protected]>
  • Loading branch information
dlmiles and jaimergp authored May 29, 2023
1 parent 4e644dd commit 14cf646
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion constructor/header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ export FORCE
# https://github.com/ContinuumIO/anaconda-issues/issues/11148
# First try to fix it (this apparently didn't work; QA reported the issue again)
# https://github.com/conda/conda/pull/9073
mkdir -p ~/.conda > /dev/null 2>&1
# Avoid silent errors when $HOME is not writable
# https://github.com/conda/constructor/pull/669
test -d ~/.conda || mkdir -p ~/.conda >/dev/null 2>/dev/null || test -d ~/.conda || mkdir ~/.conda

printf "\nInstalling base environment...\n\n"

Expand Down
19 changes: 19 additions & 0 deletions news/669-mkdir-home
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Ensure error mesage is emitted when `$HOME` is not writable in shell installers. (#669)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>

0 comments on commit 14cf646

Please sign in to comment.