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