Benign linux Download

install.sh

AArch64 (ARM64) architecture stringReferences curl flags and HTTP URL
SHA-2560e34d2bbb4838ff6e0c7f78312f1e37534e9bca8cb504abfb4bf289cd7fa9590

Evidence

Archive-related identifier text lines 9–31
9GITHUB_REPO="AI-Shell-Team/aish"
10REPO_BASE_URL="${AISH_REPO_BASE_URL:-https://www.aishell.ai/repo}"
11MIN_GLIBC_VERSION="2.28"
12CONNECTION_TIMEOUT=10
13FORCE_CONFIG=0
14BETA_INSTALL=0
15RELEASE_CHANNEL="stable"
16DOWNLOAD_BASE_URL=""
17LATEST_VERSION_URL=""
18WORK_DIR=""
19CACHE_DIR=""
20ARCHIVE_PATH=""
21SHA_PATH=""
22SUDO_PASSWORD_PROMPT=$'\nAI Shell needs administrator access to continue.\nPassword: '
23SUDO_SESSION_READY=0
24declare -a AUTO_INSTALL_PACKAGES=()
25declare -a ENVIRONMENT_ISSUES=()
26
27if [[ -z "${NO_COLOR:-}" ]] && [[ "${TERM:-}" != "dumb" ]] && [[ -t 1 ]]; then
28 RED=$'\033[31m'
29 GREEN=$'\033[32m'
30 YELLOW=$'\033[33m'
31 CYAN=$'\03 …
Text contains curl-to-shell or Node pipeline lines 46–60
⋯4 lines
50AI Shell release installer
51
52Usage:
53 curl -fsSL https://www.aishell.ai/repo/install.sh | bash
54 curl -fsSL https://www.aishell.ai/repo/install.sh | bash -s -- --force-config
55 curl -fsSL https://www.aishell.ai/repo/install.sh | bash -s -- --beta
56 AISH_VERSION=0.3.0-beta.1 curl -fsSL https://www.aishell.ai/repo/install.sh | bash -s -- --beta
57
58The installer resolves the latest version, downloads the matching bundle for
59your architecture, verifies its checksum, and runs the bundled installer.
60The bundle is downloa …
Shell recursively removes a path lines 93–101
93:21… ode=$?
94
95 if [[ -n "$WORK_DIR" && -d "$WORK_DIR" ]]; then
96 rm -rf "$WORK_DIR"
97 fi
98
99 if [[ "$exit_code" -ne 0 && -n "$ARCHIVE_PATH" && -f "$ARCHIVE_PATH" ]]; then
100 echo
101 …
References a release download URL path lines 103–125
⋯6 lines
109require_command() {
110 local cmd="$1"
111 if ! command -v "$cmd" >/dev/null 2>&1; then
112 print_error "Missing required command: $cmd"
113 exit 1
114 fi
115}
116
117configure_release_channel() {
118 DOWNLOAD_BASE_URL="https://github.com/${GITHUB_REPO}/releases/download"
119 if [[ "$BETA_INSTALL" -eq 1 ]]; then
120 RELEASE_CHANNEL="beta"
121 CHECKSUM_BASE_URL="${REPO_BASE_URL%/}/beta"
122 LATEST_VERSION_URL="${AISH_BETA_LATEST_URL:-${CHECKSUM_BASE_URL}/latest}"
123 else
124 RELEASE_CHANNEL="stable"
125 CHECKSUM_BASE_UR …
Shell expands secret-named variable lines 140–159
140:9… fi
141 fi
142}
143
144ensure_sudo_session() {
145 if [[ "${EUID}" -eq 0 ]]; then
146 return 0
147 fi
148
149 if [[ "$SUDO_SESSION_READY" -eq 0 ]]; then
150 sudo -v -p "$SUDO_PASSWORD_PROMPT"
151 SUDO_SESSION_READY=1
152 fi
⋯7 lines

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.