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() {
|
||||
echo -e "\n[*] Installing fonts..."
|
||||
if [[ -d "$FDIR" ]]; then
|
||||
cp -rf $DIR/fonts/* "$FDIR"
|
||||
else
|
||||
mkdir -p "$FDIR"
|
||||
cp -rf $DIR/fonts/* "$FDIR"
|
||||
fi
|
||||
[[ ! -d "$FDIR" ]] && mkdir -p "$FDIR"
|
||||
cp -rf $DIR/fonts/* "$FDIR"
|
||||
}
|
||||
|
||||
# Install Themes
|
||||
|
||||
Reference in New Issue
Block a user