diff --git a/install.sh b/install.sh index c03d421..0b771cb 100644 --- a/install.sh +++ b/install.sh @@ -2,6 +2,9 @@ echo "" echo "Installing i3blocks" +echo "Checking if i3blocks is installed" +i3blocks -V &> /dev/null +[[ $? -ne 0 ]] && echo "Please install i3blocks first and restart this setup" && exit 1 echo "Checking if the directory ~/.config/i3blocks already exists" [[ -d "$HOME/.config/i3blocks" ]] && echo "Moving ~/.config/i3blocks to ~/.config/i3blocks.bak" && mv "$HOME/.config/i3blocks"{,.bak} >/dev/null 2>/dev/null echo "Downloading simple-i3blocks to ~/.config/i3blocks"