mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-27 04:40:34 +03:00
Replace "founded" to "found"
This commit is contained in:
@@ -90,21 +90,21 @@ return view.extend({
|
|||||||
logdate_len = (Array.isArray(logdata)) ? logdata.length : -1;
|
logdate_len = (Array.isArray(logdata)) ? logdata.length : -1;
|
||||||
}
|
}
|
||||||
let elem_name = elem.getAttribute("name");
|
let elem_name = elem.getAttribute("name");
|
||||||
let founded = false;
|
let found = false;
|
||||||
if (logdate_len > 0) {
|
if (logdate_len > 0) {
|
||||||
for (let log_num = 0; log_num < logdate_len; log_num++) {
|
for (let log_num = 0; log_num < logdate_len; log_num++) {
|
||||||
if (logdata[log_num].filename == elem_name) {
|
if (logdata[log_num].filename == elem_name) {
|
||||||
if (logdata[log_num].data) {
|
if (logdata[log_num].data) {
|
||||||
elem.value = logdata[log_num].data;
|
elem.value = logdata[log_num].data;
|
||||||
elem.rows = logdata[log_num].rows;
|
elem.rows = logdata[log_num].rows;
|
||||||
founded = true;
|
found = true;
|
||||||
//console.log('POLL: updated ' + elem_name);
|
//console.log('POLL: updated ' + elem_name);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!founded) {
|
if (!found) {
|
||||||
elem.value = '';
|
elem.value = '';
|
||||||
elem.rows = 0;
|
elem.rows = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ if [ "$EXE_DIR" = "/tmp" ]; then
|
|||||||
opt_forced="true"
|
opt_forced="true"
|
||||||
fi
|
fi
|
||||||
else
|
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
|
. $EXE_DIR/comfunc.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -336,8 +336,8 @@ function get_actual_release
|
|||||||
return 0
|
return 0
|
||||||
done
|
done
|
||||||
json_cleanup
|
json_cleanup
|
||||||
echo "ERROR: latest release for arch \"$ZAP_CPU_ARCH\" not founded!"
|
echo "ERROR: latest release for arch \"$ZAP_CPU_ARCH\" not found!"
|
||||||
return 150 # release not founded
|
return 150 # release not found
|
||||||
}
|
}
|
||||||
|
|
||||||
# -------------------------------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------------------------------
|
||||||
@@ -410,7 +410,7 @@ echo "Current installed version: $ZAP_CUR_PKG_VER"
|
|||||||
if [ "$opt_update" = "" ]; then
|
if [ "$opt_update" = "" ]; then
|
||||||
ZAP_PKG_URL="$REL_ACTUAL_URL"
|
ZAP_PKG_URL="$REL_ACTUAL_URL"
|
||||||
if [ "$ZAP_PKG_URL" = "" ]; then
|
if [ "$ZAP_PKG_URL" = "" ]; then
|
||||||
echo "ERROR: actual release not founded!"
|
echo "ERROR: actual release not found!"
|
||||||
return 199
|
return 199
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@@ -419,7 +419,7 @@ else
|
|||||||
ZAP_PKG_URL="$REL_ACTUAL_URL"
|
ZAP_PKG_URL="$REL_ACTUAL_URL"
|
||||||
fi
|
fi
|
||||||
if [ "$opt_update" = "@" -a "$ZAP_PKG_URL" = "" ]; then
|
if [ "$opt_update" = "@" -a "$ZAP_PKG_URL" = "" ]; then
|
||||||
echo "ERROR: actual release not founded!"
|
echo "ERROR: actual release not found!"
|
||||||
return 199
|
return 199
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -494,7 +494,7 @@ if [ "$opt_update" != "" ]; then
|
|||||||
rm -f "$ZAP_PKG_FN" 2>/dev/null
|
rm -f "$ZAP_PKG_FN" 2>/dev/null
|
||||||
if [ "$PKG_MGR" = "apk" ]; then
|
if [ "$PKG_MGR" = "apk" ]; then
|
||||||
if [ ! -d "$ZAP_PKG_DIR/apk" ]; then
|
if [ ! -d "$ZAP_PKG_DIR/apk" ]; then
|
||||||
echo "ERROR: APK-files not founded"
|
echo "ERROR: APK-files not found"
|
||||||
return 221
|
return 221
|
||||||
fi
|
fi
|
||||||
rm -f $ZAP_PKG_DIR/*.ipk 2>/dev/null
|
rm -f $ZAP_PKG_DIR/*.ipk 2>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user