fix(recovery): download the standalone entrypoint

Download the standalone script in Recovery instructions
This commit is contained in:
2026-10-30 11:13:22 -03:00
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ No internet needed. No SIP to disable. No typing long URLs.
If you do have internet in Recovery: If you do have internet in Recovery:
```bash ```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 chmod +x /tmp/unleash && /tmp/unleash bypass
``` ```
+13
View File
@@ -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" ]
}