Simplify fonts installation code
Removes duplicated `cp` instructions and replaces it with single `mkdir` and `cp`
This commit is contained in:
@@ -10,12 +10,8 @@ PDIR="$HOME/.config/polybar"
|
|||||||
# Install Fonts
|
# Install Fonts
|
||||||
install_fonts() {
|
install_fonts() {
|
||||||
echo -e "\n[*] Installing fonts..."
|
echo -e "\n[*] Installing fonts..."
|
||||||
if [[ -d "$FDIR" ]]; then
|
[[ ! -d "$FDIR" ]] && mkdir -p "$FDIR"
|
||||||
cp -rf $DIR/fonts/* "$FDIR"
|
cp -rf $DIR/fonts/* "$FDIR"
|
||||||
else
|
|
||||||
mkdir -p "$FDIR"
|
|
||||||
cp -rf $DIR/fonts/* "$FDIR"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install Themes
|
# Install Themes
|
||||||
|
|||||||
Reference in New Issue
Block a user