Skip to content

Add OG preview and fix curl pipe execution#2

Merged
fbsobreira merged 2 commits into
mainfrom
develop
Feb 23, 2026
Merged

Add OG preview and fix curl pipe execution#2
fbsobreira merged 2 commits into
mainfrom
develop

Conversation

@fbsobreira
Copy link
Copy Markdown
Member

@fbsobreira fbsobreira commented Feb 23, 2026

Summary

  • Fix curl | bash execution — BASH_SOURCE[0] is empty when piped, so the guard now also checks for empty to run main
  • Add Open Graph and Twitter Card meta tags for social media previews
  • Generate 1200x630 branded preview image (og-image.png)
  • Include og-image.png in GitHub Pages deploy workflow

Test plan

  • Verify curl -fsSL https://install.klever.org/install.sh | bash runs the installer
  • Verify source ./install.sh does NOT run main (sourcing guard still works)
  • Share install.klever.org link on Slack/Twitter and confirm preview renders

Summary by CodeRabbit

  • New Features

    • Enhanced social media sharing with Open Graph and Twitter Card metadata for richer content previews when links are shared
    • Installation script now supports execution via piped curl command for improved accessibility
  • Chores

    • Updated deployment workflow to include additional assets in the build process

BASH_SOURCE[0] is empty when piped, so the guard must also
check for empty to support the curl | bash install pattern.
- Add OG and Twitter Card meta tags to index.html
- Generate 1200x630 preview image with Klever branding
- Include og-image.png in deploy workflow
Copilot AI review requested due to automatic review settings February 23, 2026 01:46
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 23, 2026

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

The PR adds social media preview capabilities to the homepage with Open Graph and Twitter Card meta tags, includes copying an og-image asset during deployment, and updates the install script to support execution via piped curl commands in addition to direct script invocation.

Changes

Cohort / File(s) Summary
Social Media Preview Support
.github/workflows/deploy.yml, index.html
Deploy workflow now copies og-image.png alongside HTML files; index.html adds 16 lines of Open Graph and Twitter Card meta tags for social sharing previews.
Script Execution Enhancement
install.sh
Guard condition expanded to support piped execution (curl | bash) by checking if BASH_SOURCE[0] is empty or direct execution ($0), with comments updated accordingly.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes the curl | bash execution issue and adds social media preview functionality to the Klever installer landing page. The bash sourcing guard now correctly detects when the script is piped to bash (where BASH_SOURCE[0] is empty) and executes the main function in that scenario, while still preventing execution when the script is sourced for testing.

Changes:

  • Fixed bash execution guard to handle empty BASH_SOURCE[0] when piped via curl
  • Added Open Graph and Twitter Card meta tags for rich social media previews
  • Included og-image.png in the GitHub Pages deployment workflow

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
install.sh Updated bash guard to check for empty BASH_SOURCE[0] to support curl pipe execution
index.html Added Open Graph and Twitter Card meta tags with proper image dimensions (1200x630)
.github/workflows/deploy.yml Included og-image.png in the site files copied during deployment
og-image.png Added 1200x630 branded preview image for social media sharing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fbsobreira fbsobreira merged commit 2c04871 into main Feb 23, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants