diff --git a/installer.sh b/installer.sh index de5438e..e57e86b 100644 --- a/installer.sh +++ b/installer.sh @@ -4,7 +4,6 @@ set -e BINARY_NAME="crib" GITHUB_URL="https://github.com/SyedM-dev/crib/releases/download/v0.0.1-alpha/crib-linux-x86_64" -# 1️⃣ Check dependencies missing=() command -v ruby >/dev/null 2>&1 || missing+=("ruby") ldconfig -p | grep libmagic >/dev/null 2>&1 || missing+=("libmagic") @@ -18,7 +17,6 @@ if [ ${#missing[@]} -ne 0 ]; then exit 1 fi -# 2️⃣ Ask installation path echo "Install locally (~/.local/bin) or globally (/usr/bin)? [l/g]" read -r choice case "$choice" in @@ -32,12 +30,10 @@ esac mkdir -p "$INSTALL_DIR" -# 3️⃣ Download the binary echo "Downloading binary..." curl -L "$GITHUB_URL" -o "$INSTALL_DIR/$BINARY_NAME" chmod +x "$INSTALL_DIR/$BINARY_NAME" -# 4️⃣ Optional: confirm echo "$BINARY_NAME installed to $INSTALL_DIR" echo "You can run it with: $BINARY_NAME" echo "Remember to add $INSTALL_DIR to PATH if not already."