From eb6fc2918c837e3ab12f8cea7bc23112dc6debed Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sat, 30 Apr 2022 18:22:18 +0200 Subject: style: format install script --- install.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index b64693b..ae9cdac 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,13 @@ #!/bin/sh -which nvim >/dev/null 2>&1 || (echo "Neovim not installed!" && exit 1) -which luarocks >/dev/null 2>&1 || (echo "Luarocks not installed!" && exit 1) -luarocks list | grep "fennel" >/dev/null 2>&1 || (echo "fennel is not installed" && exit 1) -nvim --headless +qa && nvim --headless -c "autocmd User PackerComplete quitall" +# Check dependencies +which nvim >/dev/null 2>&1 || +(echo "Neovim not installed!" && exit 1) +which luarocks >/dev/null 2>&1 || +(echo "Luarocks not installed!" && exit 1) +luarocks list | grep "fennel" >/dev/null 2>&1 || +(echo "fennel is not installed" && exit 1) + +# Bootstrap installment +nvim --headless +qa && +nvim --headless -c "autocmd User PackerComplete quitall" -- cgit v1.2.3-70-g09d2