install.sh
AArch64 (ARM64) architecture stringReferences a systemd ExecStart directive
SHA-25675730b65737a66f0beb6029ff4d0ede4e6cb9f0794e8c39438c3a7f2d198a854
Evidence
1#!/usr/bin/env bash
2set -euo pipefail
3
4PROGRAM="sbh"
5REPO_DEFAULT="Dicklesworthstone/storage_ballast_helper"
6
7DEST_MODE="user"
8DEST_DIR=""
9# Set by --dest: put a copy there and touch nothing else (see sync_system_service).
10DEST_EXPLICIT=0
11VERSION="latest"
12DRY_RUN=0
13JSON_M …
32:17… ${2:-1}"
33 if [[ "$NO_COLOR" -eq 1 ]]; then
34 return 0
35 fi
36 if [[ "$stream" -eq 2 ]]; then
37 printf '\033[%sm' "$code" >&2
38 else
39 printf '\033[%sm' "$code"
⋯6 lines
99 printf '"status":"%s",' "$status"
100 printf '"message":"%s",' "$(json_escape "$message")"
101 printf '"mode":"%s",' "$mode"
102 printf '"destination":"%s",' "$(json_escape "$destination")"
103 printf '"target":"%s",' "$target"
104 printf '"version":"%s",' "$(json_escape "$VERSION")"
105 printf '"asset_url":"%s",' "$(json_escape "$asset_url")"
106 printf '"trace_id":"%s",' "$(json_escape "$TRACE_ID")"
107 printf '"verify":"%s",' "$verify_mode"
108 printf '"changed":%s,' "$changed"
109 printf '"dry_run":%s' "$(json_bool "$dry_run")"
110 printf '}\n'
111}
⋯10 lines
153:24… PATH" ]]; then
154 if ! mkdir -p "$(dirname "$EVENT_LOG_PATH")" 2>/dev/null; then
155 local failed_path="$EVENT_LOG_PATH"
156 EVENT_LOG_PATH=""
157 die "Failed to create event log directory for ${failed_path}"
158 fi
159 if ! printf '%s\n' "$payload" >> "$EVENT_LOG_PATH" 2>/dev/null; then …
194:146… DRY_RUN"
195 else
196 log_error "$message"
197 fi
198 exit 1
199}
200
201usage() {
202 cat <<'EOF'
203sbh Unix installer
204
205Usage:
206 install.sh [options]
207
208Options:
209 --version <tag|semver> Install a specific release tag (default: latest)
210 --dest <dir> …