Skip to content

Commit

Permalink
Fix sys type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaffieri committed Jan 4, 2025
1 parent b943c1c commit 6fd4037
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/offline-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fd4037

Please sign in to comment.