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

improper grep #40

Open
allanjude opened this issue Oct 30, 2017 · 0 comments
Open

improper grep #40

allanjude opened this issue Oct 30, 2017 · 0 comments

Comments

@allanjude
Copy link
Owner

The grep command used like this:

    # since the snap was matched, let's not waste our time searching for 
# it again
    zfs_source_snaps=$(echo "$zfs_source_snaps" | grep -v "$src_snap")

should use -x

else, removing a snapshot named @foo1
from the list, will also remove @foo11 and likely cause problems

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

1 participant