From 6d8aa31c950d64ee704c9be4d9a9a4c1779314bc Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 14 Sep 2022 09:12:16 -0400 Subject: [PATCH] Cleanup install --- install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 7e77ad5..ed66f35 100755 --- a/install.sh +++ b/install.sh @@ -84,13 +84,15 @@ install_vim() { install_linux() { if ! command -v apt-get > /dev/null; then - echo apt-get is not required, but not available + echo apt-get is required, but not available exit 1 fi - DEBIAN_FRONTEND=noninteractive sudo apt-get install --assume-yes \ - build-essential procps curl file git cmake pkg-config libfreetype6-dev \ - libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 + packages="build-essential procps curl file git cmake pkg-config\ + libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev\ + libxkbcommon-dev python3" + dpkg -s $packages >/dev/null 2>&1 \ + || sudo apt-get install --assume-yes $packages install_homebrew source ~/dotfiles/zsh/.zshenv