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

added return to previous directory before cleanup call #311

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

AlReka
Copy link

@AlReka AlReka commented May 19, 2023

@realtime-neil
Copy link
Contributor

realtime-neil commented May 19, 2023

That's not the "previous" directory. That's the parent directory.

You can change to the previous directory by

cd -
-

When a <hyphen-minus> is used as the operand, this shall be equivalent to the command:

    cd "$OLDPWD" && pwd

which changes to the previous working directory and then writes its name.

-- https://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html

@megastep
Copy link
Owner

It might be a good idea to add a unit test for the cleanup script too.

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.

None yet

3 participants