Skip to content

Commit

Permalink
Add null terminator check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Jun 26, 2023
1 parent a919082 commit d05e3df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/Build_Examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,13 @@ jobs:
$CHANGE_FILES = [string](git diff --ignore-submodules --name-only remotes/origin/main)
# Check for change files by checking for watched file substrings
# For powershell substring: (https://stackoverflow.com/a/31603685)
if ($($WATCH_FILES | %{$CHANGE_FILES.contains($_)}) -contains $true)
if ( $CHANGE_FILES ) # null check
{
echo "Match found."
$RUN_TEST = 1
if ($($WATCH_FILES | %{$CHANGE_FILES.contains($_)}) -contains $true)
{
echo "Match found."
$RUN_TEST = 1
}
}
}
Expand Down

0 comments on commit d05e3df

Please sign in to comment.