Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearran committed Nov 29, 2024
1 parent 22cfb76 commit 5243d4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/modules/functions/check_distro_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ function check_distro_status() {
*)

# Ensure OS detection succeeded
if [[ -z "$DISTROID" && -z "$ARMBIAN" ]]; then
# if [[ -z "$DISTROID" && -z "$ARMBIAN" ]]; then
if [[ -z "$DISTROID" ]]; then
echo "Error: Unable to detect the current OS distribution."
exit 1
fi

# Check if the OS is listed as supported in the DISTRO_STATUS
if grep -qE "^${DISTROID}=.*supported" "$DISTRO_STATUS" && [[ -n "ARMBIAN" ]]; then
if grep -qE "^${DISTROID}=.*supported" "$DISTRO_STATUS"; then
echo "The current $ARMBIAN ($DISTROID) is supported."
else
BACKTITLE="Warning: The current OS ($DISTROID) is not supported or not listed"
Expand Down

0 comments on commit 5243d4c

Please sign in to comment.