Fixed broken iCamera patch script for Wyze Cam v3 (#315)

The return code for `false||return` is non-zero, which causes the
script to fail when the v2 checks fail.

Tested on my v3 and it seems to apply the patch properly now.
This commit is contained in:
Leo 2022-09-28 18:16:45 -06:00 committed by GitHub
parent 46a41b8331
commit fe4c982796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ function patch_wzutil_testconnectbyurl_skip_check() {
[ ! -f /opt/wz_mini/tmp/.T20 ] && return # Only on the v2
[[ "$Version" == "4.61.0.1" ]] && return
[[ "$Version" == "4.36.9.139" ]] && return
[[ "$Version" == "4.9.8.1002" ]] || return # Only supports 4.9.8.1002
[[ "$Version" != "4.9.8.1002" ]] && return # Only supports 4.9.8.1002
echo -e "\n\n====> Calling ${FUNCNAME[0]}\n"
@ -252,7 +252,7 @@ function patch_wzutil_testconnectbyurl_skip_check() {
# Applies only to the v2
function patch_v2_led_connect_led () {
# Applies only to this particular firmware in the v2.
[[ "$Version" == "4.9.8.1002" ]] || return
[[ "$Version" != "4.9.8.1002" ]] && return
echo -e "\n\n====> Calling ${FUNCNAME[0]}\n"