20 lines
489 B
Bash
20 lines
489 B
Bash
#!/bin/bash
|
|
checkCopy() {
|
|
(
|
|
[ -z "${destinationfrequency[$destination]}" ] \
|
|
|| (( ${rate:-0} == ${destinationfrequency[$destination]} ))
|
|
) && (
|
|
[ -z "${destinationchannels[$destination]}" ] \
|
|
|| (( ${channels:-0} == ${destinationchannels[$destination]} ))
|
|
) && (
|
|
(( ${bitrate:-1000} == ${destinationquality[$destination]} )) \
|
|
|| (
|
|
[ -n "${destinationmaxbps[$destination]}" ] \
|
|
&& ((
|
|
${bitrate:-1000}
|
|
<= ${destinationmaxbps[$destination]:-0}
|
|
))
|
|
)
|
|
)
|
|
}
|