mirror of
				https://github.com/speed47/spectre-meltdown-checker.git
				synced 2025-10-31 20:50:55 +01:00 
			
		
		
		
	chore: avoid ${var:-]} syntax, badly confusing vim's syntax highlighter
This commit is contained in:
		| @@ -1090,7 +1090,8 @@ pvulnstatus() | |||||||
| 					OK)   is_vuln="false";; | 					OK)   is_vuln="false";; | ||||||
| 					*)    echo "$0: error: unknown status '$2' passed to pvulnstatus()" >&2; exit 255;; | 					*)    echo "$0: error: unknown status '$2' passed to pvulnstatus()" >&2; exit 255;; | ||||||
| 				esac | 				esac | ||||||
| 				json_output="${json_output:-[}{\"NAME\":\"$aka\",\"CVE\":\"$1\",\"VULNERABLE\":$is_vuln,\"INFOS\":\"$3\"}," | 				[ -z "$json_output" ] && json_output='[' | ||||||
|  | 				json_output="${json_output}{\"NAME\":\"$aka\",\"CVE\":\"$1\",\"VULNERABLE\":$is_vuln,\"INFOS\":\"$3\"}," | ||||||
| 				;; | 				;; | ||||||
|  |  | ||||||
| 			nrpe)	[ "$2" = VULN ] && nrpe_vuln="$nrpe_vuln $1";; | 			nrpe)	[ "$2" = VULN ] && nrpe_vuln="$nrpe_vuln $1";; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user