Evidence

HTTP or HTTPS URL reference lines 4–11
4:38… m in supporting older shells
5#
6# Licensed under the MIT license
7# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8# option. This file may not be copied, modified, or distributed
9# except according to those terms.
10
11# This runs on Un …
References a release download URL path lines 18–37
18:26… SC2034 # deliberately unused
19 local _has_local
20}
21
22has_local 2>/dev/null || alias local=typeset
23
24set -u
25
26APP_NAME="skref"
27APP_VERSION="1.2.0"
28if [ -n "${SKREF_DOWNLOAD_URL:-}" ]; then
29 ARTIFACT_DOWNLOAD_URLS="$SKREF_DOWNLOAD_URL"
30elif [ -n "${INSTALLER_DOWNLOAD_URL:-}" ]; then
31 ARTIFACT_DOWNLOAD_URLS="$INSTALLER_DOWNLOAD_URL"
32elif [ -n "${SKREF_INSTALLER_GHE_BASE_URL:-}" ]; then
33 INSTALLER_BASE_URL="$SKREF_INSTALLER_GHE_BASE_URL"
34 ARTIFACT_DOWNLOAD_URLS="${INSTALLER_BASE_URL}/alephic-ai/skref/releases/download/v1.2.0"
35elif [ -n "${SKREF_INSTALLER_GITHUB_BASE_URL:-}" ]; then
36 INSTALLER_BASE_URL="$SKREF_INSTALLER_GITHUB_BASE_URL"
37 ARTIFACT_DOWNLOAD_URLS= …
GitHub release asset URL or base template lines 37–53
37:63… kref/releases/download/v1.2.0"
38else
39 ARTIFACT_DOWNLOAD_URLS="https://github.com/alephic-ai/skref/releases/download/v1.2.0"
40fi
41if [ -n "${SKREF_PRINT_VERBOSE:-}" ]; then
42 PRINT_VERBOSE="$SKREF_PRINT_VERBOSE"
43else
44 PRINT_VERBOSE=${INSTALLER_PRINT_VERBOSE:-0}
45fi
46if [ -n "${SKREF_PRINT_QUIET:-}" ]; then
47 PRINT_QUIET="$SKREF_PRINT_QUIET"
48else
49 PRINT_QUIET=${INSTALLER_PRINT_QUIET:-0}
50fi
51if [ -n "${SKREF_NO_MODIFY_PATH:-}" ]; then
52 NO_MODIFY_PATH="$SKREF_NO_MODIFY_PATH"
53els …
Assigns AUTH or TOKEN named shell variable lines 62–69
62:22… INSTALL}" ]; then
63 NO_MODIFY_PATH=1
64 INSTALL_UPDATER=0
65fi
66AUTH_TOKEN="${SKREF_GITHUB_TOKEN:-}"
67
68read -r RECEIPT <<EORECEIPT
69{"binaries":["CARGO_DIST_BINS"],"binary_aliases":{},"cdylibs":["CARGO_DIST_DYLIBS"],"cstaticlibs": …
Shell command-substitution syntax lines 104–112
104:8… getent passwd "$(id -un)" | cut -d: -f6
105 fi
106}
107INFERRED_HOME=$(get_home)
108# shellcheck disable=SC2034
109INFERRED_HOME_EXPRESSION=$(get_home_expression)
110
111# On Windows POSIX shells, use LOCALAPPDATA for receipt storage to match axoupdater expectations
112if is_windows_posix && [ -n "${LOCALAPPDATA:-} …

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.