Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 14, 2024
1 parent 30b5f3b commit 1971f44
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/actions/nss/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ runs:
echo "BUILD_NSS=1" >> "$GITHUB_ENV"
exit 0
fi
NSS_VERSION=$(pkg-config --modversion nss)
NSS_MAJOR=$(echo $NSS_VERSION | cut -d. -f1)
NSS_MINOR=$(echo $NSS_VERSION | cut -d. -f2)
NSS_VERSION=$(pkg-config --modversion nss &> /dev/null)
if [ "$?" -ne 0 ]; then
echo "BUILD_NSS=1" >> "$GITHUB_ENV"
exit 0
fi
NSS_MAJOR=$(echo "$NSS_VERSION" | cut -d. -f1)
NSS_MINOR=$(echo "$NSS_VERSION" | cut -d. -f2)
# Keep this in sync with what the code requires
if [ $NSS_MAJOR -ne 3 ] || [ $NSS_MINOR -lt 98 ]; then
if [ "$NSS_MAJOR" -ne 3 ] || [ "$NSS_MINOR" -lt 98 ]; then
echo "System NSS is too old: $NSS_VERSION"
echo "BUILD_NSS=1" >> "$GITHUB_ENV"
else
Expand Down

0 comments on commit 1971f44

Please sign in to comment.