Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create bashrc file #108

Merged
merged 3 commits into from
Oct 16, 2024
Merged

create bashrc file #108

merged 3 commits into from
Oct 16, 2024

Conversation

Tianhao-Gu
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 11.76471% with 15 lines in your changes missing coverage. Please review.

Project coverage is 43.12%. Comparing base (5e4b06f) to head (2b6a957).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/jupyterhub_config/custom_docker_spawner.py 11.76% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #108      +/-   ##
==========================================
- Coverage   44.27%   43.12%   -1.16%     
==========================================
  Files           7        7              
  Lines         463      480      +17     
==========================================
+ Hits          205      207       +2     
- Misses        258      273      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 63 to 71
shutil.copy2(bashrc_ext_src, user_dir/'.bashrc.tmpl')
shutil.copy2(bash_profile_ext_src, user_dir/'.bash_profile.tmpl')

bashrc_dest = user_dir / '.bashrc'
bash_profile_dest = user_dir / '.bash_profile'

if not bashrc_dest.exists():
self.log.info(f'Creating .bashrc file for {user_dir}')
shutil.copy2(bashrc_ext_src, bashrc_dest)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why copy twice? Seems like just copying from the config dir directly to *_dest would work

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just want to keep a copy of the template available for users to reference in case they update their .bashrc file and are unable to recover it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment to that effect? Will probably confuse future ppl working on this and they might simplify things w/o realizing your intent

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Tianhao-Gu Tianhao-Gu merged commit 87ba49d into main Oct 16, 2024
7 of 10 checks passed
@Tianhao-Gu Tianhao-Gu deleted the dev_jupyterhub branch October 16, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants