typo fix
Some checks failed
Docker Build and Push / build-and-push (push) Has been cancelled
Tests / test (bash) (push) Has been cancelled
Tests / test (zsh) (push) Has been cancelled
Tests / lint (push) Has been cancelled
Tests / docker (push) Has been cancelled

This commit is contained in:
2025-12-02 09:17:23 +01:00
parent d17fcf3049
commit 2ba8f0a496
16 changed files with 110 additions and 110 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh
# inish .sh installer
# finish.sh installer
# Usage: curl -sSL https://git.appmodel.nl/Tour/finish/raw/branch/main/docs/install.sh | bash
set -e
@@ -88,7 +88,7 @@ download_file() {
# Main installation
main() {
echo_green "=========================================="
echo_green " inish .sh Installation"
echo_green " finish.sh Installation"
echo_green " Version: $ACSH_VERSION"
echo_green "=========================================="
echo ""
@@ -97,11 +97,11 @@ main() {
SHELL_TYPE=$(detect_shell)
case "$SHELL_TYPE" in
zsh)
SCRIPT_NAME="inish .zsh"
SCRIPT_NAME="finish.zsh"
RC_FILE="$HOME/.zshrc"
;;
bash)
SCRIPT_NAME="inish .sh"
SCRIPT_NAME="finish.sh"
RC_FILE="$HOME/.bashrc"
;;
*)
@@ -122,7 +122,7 @@ main() {
# Determine installation location
if [ -d "$HOME/.local/bin" ]; then
INSTALL_LOCATION="$HOME/.local/bin/inish "
INSTALL_LOCATION="$HOME/.local/bin/finish"
# Add to PATH if not already there
if ! echo "$PATH" | grep -q "$HOME/.local/bin"; then
echo_warning "$HOME/.local/bin is not in PATH"
@@ -132,7 +132,7 @@ main() {
fi
fi
elif [ -w "/usr/local/bin" ]; then
INSTALL_LOCATION="/usr/local/bin/inish "
INSTALL_LOCATION="/usr/local/bin/finish"
else
echo_error "Cannot write to /usr/local/bin and $HOME/.local/bin doesn't exist"
echo "Please create $HOME/.local/bin or run with sudo"
@@ -143,7 +143,7 @@ main() {
mkdir -p "$(dirname "$INSTALL_LOCATION")"
# Download script
echo "Downloading inish .sh..."
echo "Downloading finish.sh..."
URL="$REPO_URL/$BRANCH_OR_VERSION/$SCRIPT_NAME"
if ! download_file "$URL" "$INSTALL_LOCATION"; then
echo_error "Failed to download from $URL"