From 6cdc8bfbc71679d87ddcb6a0741cf43bb891a2ee Mon Sep 17 00:00:00 2001
From: Ethan Robert <ethan.rbrt90@gmail.com>
Date: Thu, 13 Mar 2025 14:33:59 +0100
Subject: [PATCH] Added requirements to .gitlab-ci

---
 .gitlab-ci.yml  | 2 ++
 install-unix.sh | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc278b5..8749775 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,8 @@ stages:
 
 install:
   stage: install
+  before_script:
+    - apt-get update && apt-get install -y wget sudo unzip
   script:
     - chmod +x install-unix.sh
     - ./install-unix.sh
diff --git a/install-unix.sh b/install-unix.sh
index a5c477a..2a5719b 100755
--- a/install-unix.sh
+++ b/install-unix.sh
@@ -11,13 +11,13 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
 elif [[ -f /etc/debian_version ]]; then
     # Debian/Ubuntu
     sudo apt update
-    sudo apt install -y graphviz wget unzip
+    sudo apt install -y graphviz wget unzip sudo
 elif [[ -f /etc/arch-release ]]; then
     # Arch
-    sudo pacman -Syu --noconfirm graphviz wget unzip
+    sudo pacman -Syu --noconfirm graphviz wget unzip sudo
 elif [[ -f /etc/fedora-release ]]; then
     # Fedora
-    sudo dnf install -y graphviz wget unzip
+    sudo dnf install -y graphviz wget unzip sudo
 else
     echo "Unsupported OS"
     exit 1
-- 
GitLab