Skip to content

Removing CWD causes warnings in subsequent commands #514

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

Closed
aureq opened this issue Sep 6, 2020 · 2 comments
Closed

Removing CWD causes warnings in subsequent commands #514

aureq opened this issue Sep 6, 2020 · 2 comments

Comments

@aureq
Copy link

aureq commented Sep 6, 2020

Hi,

When removing /usr/src/python the current working directory is also the directory being removed. This causes subsequent commands to complain about not being able to locate the current working directory.

&& make install \
&& rm -rf /usr/src/python \

As a potential fix, changing the current working directory to / would prevent these warnings :

&& make install \
&& cd / \
&& rm -rf /usr/src/python \

I guess this is mostly a cosmetic change but I'm not sure if the warnings could cause problems with the commands after.

@tianon
Copy link
Member

tianon commented Sep 8, 2020

Yeah, this would probably make sense (although I think it is mostly cosmetic -- we haven't seen any issues with the commands we run after that needing their working directory to exist).

@tianon
Copy link
Member

tianon commented Jun 9, 2022

Fixed as part of #687 👍

@tianon tianon closed this as completed Jun 9, 2022
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

No branches or pull requests

2 participants