add check if i3blocks is installed
This commit is contained in:
parent
75d2116b05
commit
6ed81ccd5d
@ -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"
|
||||
|
Reference in New Issue
Block a user