Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
# libra installer · TUI
#
# curl -fsSL https://libra.tools/install.sh | sh
# curl -fsSL https://libra.tools/install.sh | sh -s -- -v v0.17.874
# curl -fsSL https://download.libra.tools/install.sh | sh
# curl -fsSL https://download.libra.tools/install.sh | sh -s -- -v v0.17.874
#
# Visual design ports the Libra TUI Installer mock — banner, conversational
# agent voice, animated per-step spinner, themed colors, success box.
Expand Down Expand Up @@ -178,12 +178,12 @@ error_exit() {
# shellcheck disable=SC2016 # $HOME is shown to the user verbatim
printf ' %s▸%s pick a writable directory %sexport LIBRA_HOME="$HOME/.libra"%s\n' \
"$C_ACCENT" "$C_RESET" "$C_ACCENT2" "$C_RESET"
printf ' %s▸%s pin a known-good version %scurl -fsSL libra.tools/install.sh | sh -s -- -v v0.1.0%s\n' \
printf ' %s▸%s pin a known-good version %scurl -fsSL https://download.libra.tools/install.sh | sh -s -- -v v0.1.0%s\n' \
"$C_ACCENT" "$C_RESET" "$C_ACCENT2" "$C_RESET"
printf ' %s▸%s open a bug report %sgithub.com/libra-tools/libra/issues%s\n' \
"$C_ACCENT" "$C_RESET" "$C_ACCENT2" "$C_RESET"
printf '\n %sneed the full log? re-run with:%s\n' "$C_DIM" "$C_RESET"
printf ' %scurl -fsSL libra.tools/install.sh | sh 2>&1 | tee install.log%s\n\n' "$C_TEXT" "$C_RESET"
printf ' %scurl -fsSL https://download.libra.tools/install.sh | sh 2>&1 | tee install.log%s\n\n' "$C_TEXT" "$C_RESET"
exit 1
}

Expand All @@ -203,16 +203,16 @@ OPTIONS:

EXAMPLES:
# Install latest version (no sudo, lives entirely under \$HOME/.libra)
curl -fsSL https://libra.tools/install.sh | sh
curl -fsSL https://download.libra.tools/install.sh | sh

# Install specific version
curl -fsSL https://libra.tools/install.sh | sh -s -- -v v0.1.0
curl -fsSL https://download.libra.tools/install.sh | sh -s -- -v v0.1.0

# Install to custom directory (must be user-writable; we never sudo)
curl -fsSL https://libra.tools/install.sh | sh -s -- -d ~/bin
curl -fsSL https://download.libra.tools/install.sh | sh -s -- -d ~/bin

# Skip shell-rc modification (source \$HOME/.libra/env yourself)
curl -fsSL https://libra.tools/install.sh | sh -s -- --no-modify-path
curl -fsSL https://download.libra.tools/install.sh | sh -s -- --no-modify-path

ENVIRONMENT VARIABLES:
LIBRA_VERSION Override version detection
Expand Down Expand Up @@ -425,7 +425,7 @@ screen_welcome() {
banner
agent_say "Hi — I'm the libra installer. I'll set up the AI-agent-native VCS for you in about 30 seconds. I'll show you what I'm doing at every step."
printf ' %sgithub.com/libra-tools/libra%s\n' "$C_DIM" "$C_RESET"
printf ' %scurl -fsSL libra.tools/install.sh | sh%s\n\n' "$C_DIM" "$C_RESET"
printf ' %scurl -fsSL https://download.libra.tools/install.sh | sh%s\n\n' "$C_DIM" "$C_RESET"
[ "$TTY" = "1" ] && sleep 0.5 2>/dev/null || true
}

Expand Down Expand Up @@ -509,7 +509,7 @@ screen_already_installed() {
"$C_SUCCESS" "$C_RESET" "$C_TEXT" "$VERSION" "$EXISTING_PATH" "$C_RESET"

printf ' %sneed a different version?%s\n' "$C_DIM" "$C_RESET"
printf ' %scurl -fsSL libra.tools/install.sh | sh -s -- -v <version>%s\n\n' "$C_TEXT" "$C_RESET"
printf ' %scurl -fsSL https://download.libra.tools/install.sh | sh -s -- -v <version>%s\n\n' "$C_TEXT" "$C_RESET"
}

screen_install() {
Expand Down
24 changes: 12 additions & 12 deletions template/pre-commit.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
# Pre-commit hook example
# Exit with 0 to allow commit, non-zero to reject
# Example
# Write-Host "Running pre-commit hook"
exit 0

#!/bin/sh


# Pre-commit hook example
# Exit with 0 to allow commit, non-zero to reject

# Example
# Write-Host "Running pre-commit hook"


exit 0
Comment on lines +1 to +12
Loading