Skip to content

Commit

Permalink
Only chown ~/.conda if it exists (#820)
Browse files Browse the repository at this point in the history
* Only chown ~/.conda if it exists

* add news
  • Loading branch information
jaimergp authored Jul 13, 2024
1 parent b49a2f7 commit f70c789
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constructor/osx/run_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ fi

# This is not needed for the default install to ~, but if the user changes the
# install location, the permissions will default to root unless this is done.
chown -R "$USER" "$PREFIX"
chown -R "$USER" "${HOME}/.conda"
chown -R "${USER}" "$PREFIX"
test -d "${HOME}/.conda" && chown -R "${USER}" "${HOME}/.conda"
test -f "${HOME}/.condarc" && chown "${USER}" "${HOME}/.condarc"

notify "Done! Installation is available in $PREFIX."
Expand Down
19 changes: 19 additions & 0 deletions news/820-test-d-chown
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Fix a regression in the PKG installers where the installer would fail if `~/.conda` did not exist before trying to fix the directory permissions. (#820)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>

0 comments on commit f70c789

Please sign in to comment.