Benign linux Download

install.sh

AArch64 (ARM64) architecture stringReferences curl flags and HTTP URL
SHA-256257e2fe145442d759c0c4114979f10a41f7f381f68429aa63045c9cf6952c0cf

Evidence

References curl flags and HTTP URL lines 1–25
1#!/usr/bin/env bash
2# RepoOS installer.
3# curl -fsSL https://repoos.org/install | bash
4#
5# Downloads the latest prebuilt release tarball from GitHub Releases and
6# installs a `repoos` launcher on PATH. Runs on Bun when it's installed
7# (recommended); otherwise requires Node.js >= 20.6.0.
8#
9# Pipe to bash, matching the docs: `curl -fsSL https://repoos.org/install | bash`.
10set -eu
11# `pipefail` is a bash/zsh extension; enable it only when the shell supports it
12# so the script also runs under POSIX-only shells such as dash (/bin/sh).
13case "${BASH_VERSION:-}${ZSH_VERSION:-}" in
14 '') ;;
15 *) set -o pipefail 2>/dev/null || true ;;
16esac
17
18REPO="repo-os/repoos"
19# Install payload and machine state are different directories. State stays in
20# ~/.repoos (servers, services.json, local-check-slots, agent-run-tmp). The
21# tarball unpacks to ~/.local/share/repoos unless REPOOS_INSTALL_DIR is set.
22INSTALL_DIR="${REPOOS_INSTALL_DIR:-$HOME/.local/share/repoos}"
23STATE_DIR="$HOME/.repoos"
24# Names shipped in repoos-dist.tar.gz. A legacy install unpacked these into
25# STATE_DIR; reinstall deletes only these names the …
Release download URL reference lines 25–31
25:68… ate survives.
26PAYLOAD_NAMES="cli commands core server ui .build-info.json"
27BIN_DIR="${REPOOS_BIN_DIR:-$HOME/.local/bin}"
28RELEASE_URL="https://github.com/${REPO}/releases/latest/download/repoos-dist.tar.gz"
29
30# --- Color / terminal helpers ------------------------------------------------
31# POSIX-safe ANSI codes (no $'...' quoting, w …
Shell text redirects both output streams lines 34–42
34:10… s prints to stdout while errors print to stderr.
35if [ "${NO_COLOR:-}" != "1" ] && { [ -t 1 ] || [ -t 2 ]; } &&
36 command -v tput >/dev/null 2>&1 &&
37 tput setaf 1 >/dev/null 2>&1 && [ "$(tput colors 2>/dev/null || echo 0)" -ge 8 ]; then
38 BOLD=$(printf '\033[1m'); DIM=$(printf '\033[2m'); RESET=$(printf '\033[0m')
39 CYAN=$(printf '\033[36m'); MAGENTA=$(printf '\033[35m'); GREEN=$(printf '\033[32m')
40 RED=$(printf '\033[31m'); YELLOW=$(printf '\033[33m'); GRAY=$(printf '\033[90m')
41else
42 BOLD=''; DIM=''; RESET=''; CYAN=''; MAGENTA=''; GREEN=''; RED='' …
POSIX lookup of a script interpreter lines 67–72
67:14… on Bun when it's installed (faster) and falls back to Node.
68if command -v bun >/dev/null 2>&1; then
69 runtime_note="Bun $(bun --version 2>/dev/null || echo '?')"
70elif command -v node >/dev/null 2>&1; then
71 # 20.6.0 matches package.json "engines". Major-only checks accepted 20.0–20.5.
72 if ! node -e 'const p=process.versions.node.split(".").map(function(n){return parseInt(n,10)||0}); if(!(p[0]>20||(p[0]===20&&(p[1]>6||(p[ …
Checks curl or wget availability lines 77–80
77:25… (recommended, https://bun.sh) or Node.js >= 20.6.0 on PATH."
78fi
79command -v curl >/dev/null 2>&1 || err "curl is required but was not found on PATH."
80command -v tar >/dev/null 2>&1 || err "tar is required bu …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.