mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add omarchy-doctor checks
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
#!/bin/bash
|
||||
OMARCHY_DESCRIPTION="Omarchy Font"
|
||||
|
||||
# Installation function
|
||||
omarchy_install() {
|
||||
# Omarchy logo in a font for Waybar use
|
||||
mkdir -p ~/.local/share/fonts
|
||||
cp ~/.local/share/omarchy/config/omarchy.ttf ~/.local/share/fonts/
|
||||
fc-cache
|
||||
# Omarchy logo in a font for Waybar use
|
||||
mkdir -p ~/.local/share/fonts
|
||||
cp ~/.local/share/omarchy/config/omarchy.ttf ~/.local/share/fonts/
|
||||
fc-cache
|
||||
}
|
||||
|
||||
# Verification function
|
||||
omarchy_verify() {
|
||||
# Check if fonts directory exists
|
||||
[[ -d ~/.local/share/fonts ]] || add_error "Fonts directory missing"
|
||||
|
||||
# Check if Omarchy font is installed
|
||||
[[ -f ~/.local/share/fonts/omarchy.ttf ]] || add_error "Omarchy font missing"
|
||||
}
|
||||
[[ -d ~/.local/share/fonts ]] || add_error "Fonts directory missing"
|
||||
[[ -f ~/.local/share/fonts/omarchy.ttf ]] || add_error "Omarchy font missing"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user