Skip to content

Commit c38fc33

Browse files
Teodor Ciuraruclaude
andcommitted
fix: use sed instead of head -n-1 for macOS compatibility
The head -n-1 command is invalid on macOS (used in GitHub Actions). Replace with sed '$d' which removes the last line and works on all systems. This fixes the HTTP response parsing in the document seeding step. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d3956a8 commit c38fc33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/swift-browserstack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
193193
# Extract HTTP status code and response body
194194
HTTP_CODE=$(echo "$RESPONSE" | tail -n1)
195-
BODY=$(echo "$RESPONSE" | head -n-1)
195+
BODY=$(echo "$RESPONSE" | sed '$d')
196196
197197
# Check if insertion was successful
198198
if [ "$HTTP_CODE" -eq 200 ] || [ "$HTTP_CODE" -eq 201 ]; then

0 commit comments

Comments
 (0)