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 bde6728019
commit 37f0c146bc

View File

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