Fix bug where DWM would try to compile without the dotfiles installed.

This commit is contained in:
2024-06-06 23:53:17 +01:00
parent f793e93b49
commit 341ab21eb0

View File

@@ -448,6 +448,7 @@ if [[ ${main_menu[@]} =~ 0 ]]; then # Install Dotfiles
fi
if [[ ${main_menu[@]} =~ 1 ]]; then # DWM
if [ -d $HOME/dotfiles ]; then
# DWM + ST + DMENU deps
sudo nala install xorg libx11-dev libxft-dev libxinerama-dev build-essential libxrandr-dev
@@ -467,14 +468,14 @@ if [[ ${main_menu[@]} =~ 1 ]]; then # DWM
cd ../..
}
compile dwm
compile dmenu
compile slock
compile slstatus
compile st
compile tabbed
compile surf
compile herbe
# Compile programs
for program in "dwm" "dmenu" "slock" "slstatus" "st" "tabbed" "surf" "herbe"; do
compile $program
done
show_success "DWM Desktop compiled."
else
show_error "Dotfiles not installed yet!"
fi
fi
if [[ ${main_menu[@]} =~ 2 ]]; then # Github CLI