Simplify fonts installation code

Removes duplicated `cp` instructions and replaces it with single `mkdir` and `cp`
This commit is contained in:
Tomasz Trębski
2021-01-12 09:28:33 +01:00
committed by GitHub
parent 46154c5283
commit 2cf8ce5997
+2 -6
View File
@@ -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