From 2c53c1f92110ab751d42c905050d4ba439484620 Mon Sep 17 00:00:00 2001 From: ruihan Date: Mon, 20 Jul 2026 13:09:39 +0000 Subject: [PATCH 1/2] docs: update recovery curl command to use standalone script --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dc83972..a7eb47d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ No internet needed. No SIP to disable. No typing long URLs. If you do have internet in Recovery: ```bash -curl -L https://raw.githubusercontent.com/mateussiqueira/unleash/main/unleash -o /tmp/unleash +curl -L https://raw.githubusercontent.com/mateussiqueira/unleash/main/unleash-standalone.sh -o /tmp/unleash chmod +x /tmp/unleash && /tmp/unleash bypass ``` From 6640d272459c273ddff03a9cbf11a6e8a5e81889 Mon Sep 17 00:00:00 2001 From: ruihan Date: Fri, 30 Oct 2026 11:12:07 -0300 Subject: [PATCH 2/2] test(recovery): run the documented download without libraries --- tests/test_recovery_download.bats | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_recovery_download.bats diff --git a/tests/test_recovery_download.bats b/tests/test_recovery_download.bats new file mode 100644 index 0000000..a159645 --- /dev/null +++ b/tests/test_recovery_download.bats @@ -0,0 +1,13 @@ +#!/usr/bin/env bats + +@test "Recovery download runs without a library directory" { + local repo="$BATS_TEST_DIRNAME/.." artifact target="$BATS_TEST_TMPDIR/recovery" + artifact=$(sed -n 's|^curl -L https://raw.githubusercontent.com/mateussiqueira/unleash/main/\([^ ]*\) -o /tmp/unleash$|\1|p' "$repo/README.md") + [ -n "$artifact" ] + mkdir -p "$target" + cp "$repo/$artifact" "$target/unleash" + run env HOME="$target" XDG_CONFIG_HOME="$target/config" bash "$target/unleash" version + [ "$status" -eq 0 ] + [[ "$output" == *"unleash"* ]] + [ ! -d "$target/lib" ] +}