Skip to content

grep -q is backwards in script #28

@JC1869

Description

@JC1869

-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions