summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraktersnurra <grydholm@kth.se>2022-04-30 18:22:18 +0200
committeraktersnurra <grydholm@kth.se>2022-04-30 18:22:18 +0200
commiteb6fc2918c837e3ab12f8cea7bc23112dc6debed (patch)
tree56a5e19031d469dd4e978ad5efb3322765b24aa8
parent609572f1f284ada0725cb75409da0b32ccbabbb9 (diff)
style: format install script
-rwxr-xr-xinstall.sh15
1 files 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"