fix: resolve shellcheck warnings in playwright deployment script

- Replace sed with bash parameter expansion for /index.html removal (SC2001)
- Remove unused trace_link variable (SC2034)
This commit is contained in:
ComfyPRBot
2025-12-22 20:22:58 +00:00
parent 3af88a8b93
commit 81401c61f3

View File

@@ -358,14 +358,12 @@ $status_icon **$status_text** • ⏰ $(date -u '+%m/%d/%Y, %I:%M:%S %p') UTC"
source_link="https://github.com/$GITHUB_REPOSITORY/blob/$BRANCH_NAME/$test_file#L$test_line"
# Build trace viewer link if trace exists
trace_link=""
if [ -n "$trace_path" ] && [ "$trace_path" != "null" ]; then
# Extract trace filename from path
trace_file=$(basename "$trace_path")
url="${url_array[$i]:-}"
if [ "$url" != "failed" ] && [ -n "$url" ]; then
base_url=$(echo "$url" | sed 's|/index.html||')
trace_link="${base_url}/data/${trace_file}"
base_url="${url%/index.html}"
trace_viewer_link="${base_url}/trace/?trace=${base_url}/data/${trace_file}"
fi
fi