Skip to content

Commit 9557d77

Browse files
committed
Trim any trailing slash from urls provided.
1 parent eac6b9d commit 9557d77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ configure_server_and_register() {
194194
fi
195195
fi
196196

197+
# Trim trailing slash if present
198+
AI_SERVER_URL="${AI_SERVER_URL%/}"
199+
197200
DEFAULT_AUTH=${AI_SERVER_API_KEY:-$AI_SERVER_AUTH_SECRET}
198201
SERVER_AUTH=$(get_input "Enter your AI Server authentication credentials." "$DEFAULT_AUTH" "true" "Enter AI Server Auth Secret")
199202

@@ -222,6 +225,9 @@ configure_server_and_register() {
222225
fi
223226
fi
224227

228+
# Trim trailing slash if present
229+
AGENT_URL="${AGENT_URL%/}"
230+
225231
AGENT_PASSWORD=$(get_input "Create a password to secure your ComfyUI Agent." "" "true" "Enter a secure password")
226232

227233
if [ -z "$AGENT_PASSWORD" ]; then

0 commit comments

Comments
 (0)