SSH-Snake icon indicating copy to clipboard operation
SSH-Snake copied to clipboard

Syntax error

Open CakeBaker1 opened this issue 1 year ago • 1 comments

bash ./Snake.nocomments.sh bash: line 449: conditional binary operator expected bash: line 449: syntax error near 'current_ips["$ignored_host"]'' bash: line 449: [[ -v 'current_ips["$ignored_host"]' || ${#current_ips["$ignored_host"]} -gt 0 ]] && fin'

CakeBaker1 avatar Mar 11 '24 15:03 CakeBaker1

What version of bash are you using?

Have you made any modifications to the script at all?

MegaManSec avatar Mar 12 '24 12:03 MegaManSec

version problem,use if ... to replace -v ...,and it does not work on bash 3.X

opensesamedoors avatar May 15 '24 01:05 opensesamedoors

The script only supports bash4 sorry

MegaManSec avatar May 15 '24 11:05 MegaManSec