Skip to content

Commit

Permalink
fix: remove an infinite loop. Refs dokku/dokku-redis#64
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Apr 24, 2018
1 parent 73a934b commit 0e5cfc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common-functions
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ service_alternative_alias() {
local COLORS=(AQUA BLACK BLUE FUCHSIA GRAY GREEN LIME MAROON NAVY OLIVE PURPLE RED SILVER TEAL WHITE YELLOW)
local ALIAS;

while [[ -z $ALIAS ]]; do
local IDX=$((RANDOM % ${#COLORS[*]}))
local COLOR=${COLORS[IDX]}
for COLOR in "${COLORS[@]}"; do
ALIAS="${PLUGIN_ALT_ALIAS}_${COLOR}"
local IN_USE=$(echo "$EXISTING_CONFIG" | grep "${ALIAS}_URL")
if [[ -n $IN_USE ]]; then
Expand Down

0 comments on commit 0e5cfc5

Please sign in to comment.