Fix bug where DWM would try to compile without the dotfiles installed.
This commit is contained in:
17
install.sh
17
install.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user