Fix jq command error in save_config and bump to v0.9.6-3

Fixed critical bug where jq command was incomplete in save_config function,
causing configuration save to fail with jq usage error when configuring
rotation sites.

Issue: The jq -n command on lines 3476-3493 had all arguments but was
missing the JSON template/filter, causing jq to output its help text
instead of creating the config file.

Fix: Added complete JSON object template to jq command with all required
fields (unit, autoswitch, enableTouch, etc.) and empty tabs array.

Version bumped from 0.9.6-2 to 0.9.6-3.
This commit is contained in:
Claude
2025-11-23 19:30:59 +00:00
parent f78f4fce91
commit bac48cd183
@@ -3491,7 +3491,27 @@ save_config() {
--arg lockoutActiveStart "${LOCKOUT_ACTIVE_START:-}" \
--arg lockoutActiveEnd "${LOCKOUT_ACTIVE_END:-}" \
--argjson requirePasswordOnBoot "$boot_password_json" \
'{
unit: $unit,
autoswitch: $autoswitch,
enableTouch: $enableTouch,
dualSwipe: $dualSwipe,
swipeMode: $swipeMode,
allowNavigation: $allowNavigation,
homeTabIndex: $homeTabIndex,
inactivityTimeout: $inactivityTimeout,
enablePauseButton: $enablePauseButton,
enableKeyboardButton: $enableKeyboardButton,
enablePasswordProtection: $enablePasswordProtection,
lockoutPassword: $lockoutPassword,
lockoutTimeout: $lockoutTimeout,
lockoutAtTime: $lockoutAtTime,
lockoutActiveStart: $lockoutActiveStart,
lockoutActiveEnd: $lockoutActiveEnd,
requirePasswordOnBoot: $requirePasswordOnBoot,
tabs: []
}' > "$tmp"
if [[ ${#URLS[@]} -gt 0 ]]; then
for idx in "${!URLS[@]}"; do
local url="${URLS[$idx]:-}"