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

grep -q is backwards in script #28

Open
JC1869 opened this issue Feb 18, 2024 · 0 comments
Open

grep -q is backwards in script #28

JC1869 opened this issue Feb 18, 2024 · 0 comments

Comments

@JC1869
Copy link

JC1869 commented Feb 18, 2024

-q Quiet. Return 0 if PATTERN is found, 1 otherwise

if transmission-remote "$HOSTPORT" --authenv --torrent "${torrent_hash}" -td "${tracker}" | grep -q 'success'; then
echo ' failed.'
else
echo ' done.'
fi

Adding the trackers still works, but the log reports failed on success and success on failures.

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