rmdir ${LFS_TMP}/fonts
chown -v -R root:root ${GS_FONTS_PATH}
- if ! grep "${GS_FONTS_PATH}" /etc/fonts/local.conf 1> /dev/null 2>&1; then
+ if ! grep -q "${GS_FONTS_PATH}" /etc/fonts/local.conf; then
# Adding Ghostscript fonts directory to local configuration file
sed -i -e "s!\(</fontconfig>\)! <dir>${GS_FONTS_PATH}</dir>\n\1!" \
/etc/fonts/local.conf