From 8e425bfa3a27eddba483f0f56276f53c38c8767f Mon Sep 17 00:00:00 2001 From: Load Accumulator Date: Thu, 2 Nov 2023 20:21:31 +0100 Subject: [PATCH] [MOD] Install git out --- setup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup b/setup index 58d07ac..dc3249e 100755 --- a/setup +++ b/setup @@ -12,9 +12,11 @@ install_pkg() { case $DISTRO in "Ubuntu"|"Debian GNU/Linux") apt install -y $1 + [ $? -eq 0 ] || exit 1 ;; "Arch Linux") pacman -Syu --noconfirm $1 + [ $? -eq 0 ] || exit 1 ;; esac } @@ -34,6 +36,7 @@ install_compiler() { CC=gcc [ $COMPILER = 'clang' ] && CC=clang esac + install_pkg git # Everyone has git! echo '::endgroup::' } install_ssl() { @@ -41,7 +44,8 @@ install_ssl() { case $DISTRO in "Ubuntu"|"Debian GNU/Linux") # Doesn't seem like Debian got LibreSSL - [ $SSL = 'libressl' ] && echo "::error ::LibreSSL is not on Debian" + [ $SSL = 'libressl' ] && echo "::error:: LibreSSL is not on Debian" + [ $SSL = 'libressl' ] && exit 1 install_pkg openssl ;; "Arch Linux")