From 990ff36daf4287745bc54fb338a4a8232611b94d Mon Sep 17 00:00:00 2001 From: Fernando Sobreira Date: Sun, 22 Feb 2026 11:14:18 -0500 Subject: [PATCH 1/2] fix: allow main to run when piped via curl | bash BASH_SOURCE[0] is empty when piped, so the guard must also check for empty to support the curl | bash install pattern. --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 1a3cca7..c590ee2 100755 --- a/install.sh +++ b/install.sh @@ -880,8 +880,8 @@ main() { fi } -# Ensure entire script is downloaded before execution when piped via curl | bash -# Guard allows sourcing functions without running main (e.g., for testing) -if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then +# Guard allows sourcing functions without running main (e.g., for testing). +# When piped via curl | bash, BASH_SOURCE[0] is empty — run main in that case too. +if [[ -z "${BASH_SOURCE[0]}" || "${BASH_SOURCE[0]}" == "${0}" ]]; then main "$@" fi From a8e408be52737ea2fe491d379261d869bf10cee0 Mon Sep 17 00:00:00 2001 From: Fernando Sobreira Date: Sun, 22 Feb 2026 20:46:02 -0500 Subject: [PATCH 2/2] feat: add Open Graph social media preview - Add OG and Twitter Card meta tags to index.html - Generate 1200x630 preview image with Klever branding - Include og-image.png in deploy workflow --- .github/workflows/deploy.yml | 2 +- index.html | 16 ++++++++++++++++ og-image.png | Bin 0 -> 41851 bytes 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 og-image.png diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 67ff4cd..03776c5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: - name: Prepare site files run: | mkdir -p _site - cp index.html install.sh _site/ + cp index.html install.sh og-image.png _site/ cp -f favicon.ico .nojekyll _site/ 2>/dev/null || true - name: Upload artifact diff --git a/index.html b/index.html index 2e8a686..28384ab 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,22 @@ Klever Developer Tools — Install + + + + + + + + + + + + + + + +