summaryrefslogtreecommitdiff
path: root/sys-apps/personal-utils/files
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/personal-utils/files')
-rwxr-xr-xsys-apps/personal-utils/files/emergefix20
1 files changed, 11 insertions, 9 deletions
diff --git a/sys-apps/personal-utils/files/emergefix b/sys-apps/personal-utils/files/emergefix
index dc7c1f2..bcec51d 100755
--- a/sys-apps/personal-utils/files/emergefix
+++ b/sys-apps/personal-utils/files/emergefix
@@ -26,12 +26,14 @@ run emerge --keep-going=y @preserved-rebuild
step "Clean packages"
run emerge --depclean -a "$@"
-step "Enable all fonts"
-enable_all_fonts() {
- eselect fontconfig list | \
- awk 'NR > 1 && $3 != "*" { print substr($1,2,length($1)-2) }' | \
- while read -r font; do
- eselect fontconfig enable "$font"
- done
-}
-enable_all_fonts
+if eselect modules has fontconfig; then
+ step "Enable all fonts"
+ enable_all_fonts() {
+ eselect fontconfig list | \
+ awk 'NR > 1 && $3 != "*" { print substr($1,2,length($1)-2) }' | \
+ while read -r font; do
+ eselect fontconfig enable "$font"
+ done
+ }
+ enable_all_fonts
+fi