From c7616b468bf1b542afd3a575ad1209d308c2b8b4 Mon Sep 17 00:00:00 2001 From: remittor Date: Fri, 9 Jan 2026 17:36:38 +0300 Subject: [PATCH] Replace "founded" to "found" --- .../luci-static/resources/view/zapret/dmnlog.js | 6 +++--- zapret/update-pkg.sh | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/dmnlog.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/dmnlog.js index 3e0f7b2..e004411 100644 --- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/dmnlog.js +++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/dmnlog.js @@ -90,21 +90,21 @@ return view.extend({ logdate_len = (Array.isArray(logdata)) ? logdata.length : -1; } let elem_name = elem.getAttribute("name"); - let founded = false; + let found = false; if (logdate_len > 0) { for (let log_num = 0; log_num < logdate_len; log_num++) { if (logdata[log_num].filename == elem_name) { if (logdata[log_num].data) { elem.value = logdata[log_num].data; elem.rows = logdata[log_num].rows; - founded = true; + found = true; //console.log('POLL: updated ' + elem_name); } break; } } } - if (!founded) { + if (!found) { elem.value = ''; elem.rows = 0; } diff --git a/zapret/update-pkg.sh b/zapret/update-pkg.sh index 63fa3b7..5eb1ae6 100755 --- a/zapret/update-pkg.sh +++ b/zapret/update-pkg.sh @@ -32,7 +32,7 @@ if [ "$EXE_DIR" = "/tmp" ]; then opt_forced="true" fi else - [ -f "$EXE_DIR/comfunc.sh" ] || { echo "ERROR: file $EXE_DIR/comfunc.sh not founded!"; exit 1; } + [ -f "$EXE_DIR/comfunc.sh" ] || { echo "ERROR: file $EXE_DIR/comfunc.sh not found!"; exit 1; } . $EXE_DIR/comfunc.sh fi @@ -336,8 +336,8 @@ function get_actual_release return 0 done json_cleanup - echo "ERROR: latest release for arch \"$ZAP_CPU_ARCH\" not founded!" - return 150 # release not founded + echo "ERROR: latest release for arch \"$ZAP_CPU_ARCH\" not found!" + return 150 # release not found } # ------------------------------------------------------------------------------------------------------- @@ -410,7 +410,7 @@ echo "Current installed version: $ZAP_CUR_PKG_VER" if [ "$opt_update" = "" ]; then ZAP_PKG_URL="$REL_ACTUAL_URL" if [ "$ZAP_PKG_URL" = "" ]; then - echo "ERROR: actual release not founded!" + echo "ERROR: actual release not found!" return 199 fi else @@ -419,7 +419,7 @@ else ZAP_PKG_URL="$REL_ACTUAL_URL" fi if [ "$opt_update" = "@" -a "$ZAP_PKG_URL" = "" ]; then - echo "ERROR: actual release not founded!" + echo "ERROR: actual release not found!" return 199 fi fi @@ -494,7 +494,7 @@ if [ "$opt_update" != "" ]; then rm -f "$ZAP_PKG_FN" 2>/dev/null if [ "$PKG_MGR" = "apk" ]; then if [ ! -d "$ZAP_PKG_DIR/apk" ]; then - echo "ERROR: APK-files not founded" + echo "ERROR: APK-files not found" return 221 fi rm -f $ZAP_PKG_DIR/*.ipk 2>/dev/null