mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
handle ver1 missing segment
This commit is contained in:
@@ -181,6 +181,10 @@ compare_es_versions() {
|
||||
|
||||
# Compare each segment of the versions
|
||||
for ((i=0; i<${#ver1[@]}; i++)); do
|
||||
# if a segment in ver1 or ver2 is missing, set it to 0
|
||||
if [[ -z ${ver1[i]} ]]; then
|
||||
ver1[i]=0
|
||||
fi
|
||||
if [[ -z ${ver2[i]} ]]; then
|
||||
ver2[i]=0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user