Skip to content

Commit

Permalink
Trim any trailing slash from urls provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Nov 21, 2024
1 parent eac6b9d commit 9557d77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ configure_server_and_register() {
fi
fi

# Trim trailing slash if present
AI_SERVER_URL="${AI_SERVER_URL%/}"

DEFAULT_AUTH=${AI_SERVER_API_KEY:-$AI_SERVER_AUTH_SECRET}
SERVER_AUTH=$(get_input "Enter your AI Server authentication credentials." "$DEFAULT_AUTH" "true" "Enter AI Server Auth Secret")

Expand Down Expand Up @@ -222,6 +225,9 @@ configure_server_and_register() {
fi
fi

# Trim trailing slash if present
AGENT_URL="${AGENT_URL%/}"

AGENT_PASSWORD=$(get_input "Create a password to secure your ComfyUI Agent." "" "true" "Enter a secure password")

if [ -z "$AGENT_PASSWORD" ]; then
Expand Down

0 comments on commit 9557d77

Please sign in to comment.