chore: bump version to 1.2.20 & optimize ucode scripts
This commit is contained in:
@@ -3,12 +3,18 @@ set -eo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
SECTION_JS="$ROOT_DIR/luci-app-tachyon/htdocs/luci-static/resources/view/tachyon/section.js"
|
||||
# Normalize SECTION_JS line endings to a temp file to prevent sed parsing failures on CRLF checkouts
|
||||
SECTION_JS_LF="$(mktemp)"
|
||||
tr -d '\r' < "$SECTION_JS" > "$SECTION_JS_LF"
|
||||
SECTION_JS="$SECTION_JS_LF"
|
||||
trap 'rm -f "$SECTION_JS_LF"' EXIT
|
||||
|
||||
fail() {
|
||||
printf 'FAIL: %s\n' "$1" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
wrapper_styles="$(sed -n '/^\.fkp-button-add-dynlist > \.add-item {$/,/^}$/p' "$SECTION_JS")"
|
||||
button_styles="$(sed -n '/^\.fkp-button-add-dynlist > \.add-item > \.cbi-button-add {$/,/^}$/p' "$SECTION_JS")"
|
||||
urltest_options="$(sed -n '/^function addUrlTestItemOptions(/,/^function priorityLevelSettingsForValidation(/p' "$SECTION_JS")"
|
||||
|
||||
Reference in New Issue
Block a user