Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #67 from vdKolk/fix/default-hostgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
annervisser committed Nov 29, 2022
2 parents 1628163 + d12049a commit 6434e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/files/cli/commands/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ command_sync:default-hostgroup() {

databaseCount=$(wc -l <<< "${availableDatabases}")

if [[ ${newDefaultHostgroupCount} = -1 || $((databaseCount)) < $((newDefaultHostgroupCount)) ]]; then
if [[ ${newDefaultHostgroupCount} = -1 || $((databaseCount)) -lt $((newDefaultHostgroupCount)) ]]; then
newDefaultHostgroupCount=$((databaseCount))
newDefaultHostgroup=$((hostgroup))
fi
Expand Down Expand Up @@ -162,7 +162,7 @@ command_sync:node() {

databaseCount=$(wc -l <<< "${availableDatabases}")

if [[ ${newDefaultHostgroupCount} = -1 || $((databaseCount)) < $((newDefaultHostgroupCount)) ]]; then
if [[ ${newDefaultHostgroupCount} = -1 || $((databaseCount)) -lt $((newDefaultHostgroupCount)) ]]; then
newDefaultHostgroupCount=$((databaseCount))
newDefaultHostgroup=$((hostgroup))
fi
Expand Down

0 comments on commit 6434e60

Please sign in to comment.