fix: remove invalid local keyword in main script body

The 'local' keyword can only be used inside functions. Line 423 had
'local timeout_count=0' in the main script body which caused a bash error.
Removed the unused variable declaration.

Fixes: bash error 'local: can only be used in a function'

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
DhanushSantosh
2026-01-16 20:44:17 +05:30
parent 49f9ecc168
commit 842b059fac

View File

@@ -420,7 +420,6 @@ stty -echo 2>/dev/null || true
# Interactive menu if no mode specified
if [ -z "$MODE" ]; then
local timeout_count=0
while true; do
show_header
show_menu