From 56bc1cb21b550ae74686a7c8de5cc5c82631a5e3 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 11 Dec 2025 01:21:53 +0100 Subject: [PATCH] -init- --- .github/workflows/release.yml | 2 +- SUMMARY.md | 4 ++-- run_tests.sh | 10 ++++++++-- 3 files changed, 11 insertions(+), 5 deletions(-) mode change 100644 => 100755 run_tests.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b650d7..cfd9e84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,7 @@ jobs: ### Quick Install (Linux/macOS) ```bash - curl -sSL https://git.appmodel.nl/Tour/finish/main/docs/install.sh | bash + curl -sSL https://git.appmodel.nl/tour/finish/main/docs/install.sh | bash ``` ### Homebrew (macOS) diff --git a/SUMMARY.md b/SUMMARY.md index acc79e5..101e8c3 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -51,7 +51,7 @@ CI/CD automation in `.github/workflows/`: ### 1. Quick Install (Recommended) ```bash -curl -sSL https://git.appmodel.nl/Tour/finish/raw/branch/main/docs/install.sh | bash +curl -sSL https://git.appmodel.nl/tour/finish/raw/branch/main/docs/install.sh | bash ``` ### 2. Debian/Ubuntu Package @@ -80,7 +80,7 @@ docker run -it ghcr.io/closedloop-technologies/finish:latest ### 5. From Source ```bash -git clone https://git.appmodel.nl/Tour/finish.git +git clone https://git.appmodel.nl/tour/finish.git cd finish ./finish.sh install ``` diff --git a/run_tests.sh b/run_tests.sh old mode 100644 new mode 100755 index 192218a..bc39c9e --- a/run_tests.sh +++ b/run_tests.sh @@ -1,3 +1,9 @@ -#!/bin/bash +#!/usr/bin/env bash +set -euo pipefail -bats tests/ +# Always run from the directory where this script lives +SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +cd "$SCRIPT_DIR" + +# Execute the tests +bash ./tests/test_finish.sh