Skip to content
Open
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
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# fazrepo installation script
# Usage: curl -fsSL https://raw.githubusercontent.com/avadakedavra-wp/fazrepo/main/install.sh | bash

set -e
set -euo pipefail

# Colors for output
RED='\033[0;31m'
Expand Down Expand Up @@ -72,7 +72,7 @@ esac

echo -e "${BLUE}🚀 Installing fazrepo...${NC}"
echo -e "${YELLOW}📍 Target: $TARGET${NC}"
echo -e "${YELLOW} Install directory: $INSTALL_DIR${NC}"
echo -e "${YELLOW}📂 Install directory: $INSTALL_DIR${NC}"

# Create install directory
mkdir -p "$INSTALL_DIR"
Expand Down Expand Up @@ -155,7 +155,7 @@ install_from_release() {

# Function to install from source
install_from_source() {
echo -e "${YELLOW} Installing from source...${NC}"
echo -e "${YELLOW}🔨 Installing from source...${NC}"

# Check if git is available
if ! command -v git >/dev/null 2>&1; then
Expand Down Expand Up @@ -245,14 +245,14 @@ if [ -f "$INSTALL_DIR/$BINARY_NAME$BINARY_EXT" ]; then
echo -e "${BLUE}🎯 Version: $version_output${NC}"
else
echo -e "${YELLOW}⚠️ fazrepo not immediately available in PATH${NC}"
echo -e "${YELLOW} You can run it directly: $INSTALL_DIR/$BINARY_NAME$BINARY_EXT${NC}"
echo -e "${YELLOW}👉 You can run it directly: $INSTALL_DIR/$BINARY_NAME$BINARY_EXT${NC}"
version_output=$("$INSTALL_DIR/$BINARY_NAME$BINARY_EXT" --version 2>/dev/null || echo "version check failed")
echo -e "${BLUE}🎯 Version: $version_output${NC}"
fi

echo ""
echo -e "${GREEN}🎉 Installation complete!${NC}"
echo -e "${BLUE} Usage examples:${NC}"
echo -e "${BLUE}📘 Usage examples:${NC}"
echo -e " $BINARY_NAME --help"
echo -e " $BINARY_NAME check"
echo -e " $BINARY_NAME version"
Expand Down