#!/bin/sh # ------------------------------------------------------------------ # _ _ _ ____ ___ ____ _ _ ____ ____ ___ ____ _ _ # | |\ | [__ | |__| | | |___ |__/ | \ |___ | | # | | \| ___] | | | |___ |___ |___ | \ .|__/ |___ \/ # # Install scripts for GitHub releases https://installer.dev # ------------------------------------------------------------------ # # Installer for github.com/installer/demo # # curl -fsSL https://installer.dev/installer/demo/install.sh | sh # # This script installs the latest release of installer/demo into your home directory. # It needs no sudo and touches nothing outside your user account. # # Docs: https://installer.dev/docs # Source: https://github.com/installer/installer # # installer.dev only fetches a release that the maintainers of installer/demo # published on GitHub. It is not affiliated with them, does not review # their releases and is not responsible for their software. # Terms: https://installer.dev/terms # # Version: 8b62a76 - 2026-12-02-190543 [ -n "${ZSH_VERSION:-}" ] && emulate sh set -eu INSTL_ORIGIN='https://installer.dev' INSTL_OWNER='installer' INSTL_REPO='demo' INSTL_SLUG='installer/demo' INSTL_VERSION="${INSTL_VERSION:-}" INSTL_VERBOSE="${INSTL_VERBOSE:-0}" instl_windows_command='irm https://installer.dev/installer/demo/install.ps1 | iex' # Terminal output. Everything goes to stderr so stdout stays free for callers. # Colors use the 16 standard ANSI colors, so the terminal theme decides the # actual shades: green is the accent, yellow and red mark warnings and errors. NO_COLOR and FORCE_COLOR follow no-color.org and # force-color.org; glyphs fall back to ASCII outside UTF-8 locales. ui_init() { ui_color=0 if [ -n "${NO_COLOR:-}" ]; then ui_color=0 elif [ -n "${FORCE_COLOR:-}" ] && [ "${FORCE_COLOR}" != "0" ]; then ui_color=1 elif [ -t 2 ] && [ "${TERM:-dumb}" != "dumb" ]; then ui_color=1 fi if [ "$ui_color" = 1 ]; then esc=$(printf '\033') c_reset="${esc}[0m" c_bold="${esc}[1m" c_dim="${esc}[2m" c_red="${esc}[31m" c_green="${esc}[32m" c_yellow="${esc}[33m" c_clear_line="$(printf '\r')${esc}[2K" else c_reset="" c_bold="" c_dim="" c_red="" c_green="" c_yellow="" c_clear_line="" fi # shellcheck disable=SC2034 # Not every script uses every glyph. case "${LC_ALL:-${LC_CTYPE:-${LANG:-}}}" in *UTF-8* | *utf-8* | *UTF8* | *utf8*) g_head="◆" g_step="◇" g_wait="◒" g_bar="│" g_end="└" g_warn="▲" g_error="■" g_dot="·" g_arrow="→" ;; *) g_head="*" g_step="o" g_wait="~" g_bar="|" g_end="'-" g_warn="!" g_error="x" g_dot="-" g_arrow="->" ;; esac ui_waiting=0 # Scripts that work through several installs set ui_scope to the padded # owner/repo, which prefixes progress, warnings and errors, and ui_quiet=1 # to print one line per install instead of every step. ui_scope="" ui_quiet=0 } ui_print() { ui_settle printf '%s\n' "$1" >&2 } # Removes a pending "working on it" line before the next line replaces it. ui_settle() { if [ "$ui_waiting" = 1 ]; then printf '%s' "$c_clear_line" >&2 ui_waiting=0 fi } # Opens the output with a blank line, which sets it apart from the command # that started the script. ui_header() { ui_print "" ui_print "${c_green}${g_head}${c_reset} ${c_bold}installer.dev${c_reset} ${c_dim}${g_dot}${c_reset} $1" ui_bar } ui_bar() { ui_print "${c_dim}${g_bar}${c_reset}" } # A finished step: ui_step