From 0c78f3ca773c71c30e1d2200dca47c2af891ddbc Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 30 Dec 2021 12:21:32 -0600 Subject: [PATCH] Added install method for ubuntu --- install.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.bash b/install.bash index 1e03dd8..47e12e5 100644 --- a/install.bash +++ b/install.bash @@ -15,7 +15,11 @@ if [[ "$OSTYPE" == "darwin"* ]]; then echo "Installing ${package}" brew install "${package}" 1>/dev/null 2>&1 done - +else + OS_RELEASE="$(grep ^NAME= /etc/os-release | cut -d "=" -f2 | tr -d '"')" + if [[ "${OS_RELEASE}" = *"Ubuntu"* ]]; then + apt install -y "${required_packages[@]}" + fi fi if [[ ! -d "${PACKER_NVIM_INSTALL_PATH}" ]]; then