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
7 changes: 4 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ CONFIG_FILE="$CONFIG_DIR/config.jsonc"
BACKUP_DIR="$CONFIG_DIR/backups"
LOGO_DIR="$CONFIG_DIR/logo"
LOGO_FILE="$LOGO_DIR/catppuccin_logo.png"
LOGO_PREINSTALL="assets/logo/catppuccin_logo.png"

# ==================================================
# Ensure Fastfetch is installed
Expand Down Expand Up @@ -151,8 +152,8 @@ install_theme() {
fi

# Check logo
if [[ ! -f "themes/Catppuccin-$THEME/logo/catppuccin_logo.png" ]]; then
echo -e "${RED}❌ Logo file not found: themes/Catppuccin-$THEME/logo/catppuccin_logo.png${NC}"
if [[ ! -f "$LOGO_PREINSTALL" ]]; then
echo -e "${RED}❌ Logo file not found: $LOGO_PREINSTALL${NC}"
read -n1 -r -p "Press any key to return to menu..." key
return 0
fi
Expand All @@ -169,7 +170,7 @@ install_theme() {

# Copy config and logo
cp "themes/Catppuccin-$THEME/config.jsonc" "$CONFIG_FILE"
cp "themes/Catppuccin-$THEME/logo/catppuccin_logo.png" "$LOGO_FILE"
cp "$LOGO_PREINSTALL" "$LOGO_FILE"
echo -e "${GREEN}✅ Installed theme flavor: $THEME${NC}"
echo -e "${GREEN}✅ Logo installed to: $LOGO_FILE${NC}"
echo
Expand Down