From 6fd40378d0979973c5b6c301a77906c820711012 Mon Sep 17 00:00:00 2001 From: fcaffieri Date: Sat, 4 Jan 2025 01:14:42 -0300 Subject: [PATCH] Fix sys type validation --- .github/workflows/offline-installation.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/offline-installation.yml b/.github/workflows/offline-installation.yml index 475bc80..e25f294 100644 --- a/.github/workflows/offline-installation.yml +++ b/.github/workflows/offline-installation.yml @@ -171,9 +171,12 @@ jobs: -i $ALLOCATOR_PATH/inventory \ -l all \ "$VERBOSITY") - echo ${SYSTEM_TYPE} - if [ "$SYSTEM_TYPE" != "rpm" ] && [ "$SYSTEM_TYPE" != "deb" ]; then + if echo "$SYSTEM_TYPE" | grep -q "rpm"; then + SYSTEM_TYPE="rpm" + elif echo "$SYSTEM_TYPE" | grep -q "deb"; then + SYSTEM_TYPE="deb" + else echo "ERROR: Unsupported system type. Could not determine if system is RPM or DEB based." exit 1 fi