Skip to content

Commit

Permalink
Detect WSL in reported OS
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky committed Jul 19, 2023
1 parent e8dc2f4 commit 11d7964
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions report_v2.sh
Expand Up @@ -29,6 +29,13 @@ TITLE=$(grep -i -A 1 "Details might be found in the build log:" $FULL | tail -n1
TITLE="$TITLE: bootstrap-prefix.sh $STAGE fails"
# EXTRAOS filters the OS name for the reports title, however we do include it in the title of the search!
EXTRAOS="unknown"
if [[ "$OS" == *"Microsoft"* ]] ; then
if [[ "$OS" == *"Linux"* ]] ; then
EXTRAOS="WSL"
else
EXTRAOS="Microsoft"
fi
fi
if [[ "$OS" == *"Linux"* ]] ; then
EXTRAOS="Linux"
fi
Expand Down

0 comments on commit 11d7964

Please sign in to comment.