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

Add option to specify mount point #99

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

Conversation

wesbarnett
Copy link
Collaborator

@wesbarnett wesbarnett commented Jan 30, 2021

Add option to specify mount point. Fixes #71

@wesbarnett wesbarnett self-assigned this Feb 7, 2021
@wesbarnett wesbarnett requested a review from NicoHood February 7, 2021 14:30
@wesbarnett
Copy link
Collaborator Author

Hey @NicoHood , thanks for being a contributor. Feel free to help as little or as much as you are able. No obligation or expectations. I did assign you as a reviewer on this PR. I may ask you to review some other PR's upcoming if you have the time. It would be good to have someone else reviewing the changes other than myself. Again, no expectations here, and if you feel like you want to help review PR's and it becomes more than you are interested in doing, also let me know.

@wesbarnett wesbarnett added this to the 0.8 milestone Feb 7, 2021
Copy link
Collaborator

@NicoHood NicoHood left a comment

Choose a reason for hiding this comment

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

I currently aint got time to test everything (yeah, it would be much better), but I gave it a visual review. thanks for your trust :-)

else
for x in $UUIDS; do
UUIDS_ARRAY[$i]=$x
if [[ "$x" == "$uuid_cmdline" && ${SUBVOLIDS_ARRAY[$((i))]} == "$subvolid_cmdline" && ${TARGETS_ARRAY[$((i))]} == "$mount_cmdline" ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would do something like:

if [[ -n "$mount_cmdline" && ${TARGETS_ARRAY[$((i))]} != "$mount_cmdline" ]]; then
    continue
fi

This should make the code smaller, but I did not test it.

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.

Add option to declare mount point
2 participants