From 62e620087bb47b3e2cf9364bbabba1bb3a9d2516 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20-=20Le=20Filament?= <theo@le-filament.com>
Date: Mon, 12 Aug 2024 19:39:11 +0200
Subject: [PATCH] fix(get_addons): replace bad test

---
 get_addons | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/get_addons b/get_addons
index 87ad877..7d86bb6 100644
--- a/get_addons
+++ b/get_addons
@@ -25,11 +25,11 @@ modules="$@"
 
 set +e
 git clone --branch "${ref}" --filter=tree:0 "${repo}" "${TMP_REPO_PATH}"
-if [ "$?" != 0 ]; then
+if [ "$?" -ne 0 ]; then
   git clone --filter=tree:0 "${repo}" "${TMP_REPO_PATH}"
-  if [ "$?" != 0 ]; then
+  if [ "$?" -ne 0 ]; then
     git clone --single-branch --branch "${ref}" --depth 1 "${repo}" "${TMP_REPO_PATH}"
-    if [ "$?" != 0 ]; then
+    if [ "$?" -ne 0 ]; then
       git clone "${repo}" "${TMP_REPO_PATH}"
     fi
   fi
-- 
GitLab