Skip to content

Commit 9cd7c7b

Browse files
committed
Check for empty variable
1 parent 4e8c705 commit 9cd7c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/datasheet-rendering/render-datasheets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636
VERSION=`node -v | grep -o 'v\d*'| cut -d "v" -f2`
3737
MIN_VERSION=14
3838

39-
if [ "$VERSION" -lt $MIN_VERSION ]; then
39+
if [ -n "$VERSION" ] && [ "$VERSION" -lt $MIN_VERSION ]; then
4040
echo "You're using an old version of Node.js ($VERSION). Please update to $MIN_VERSION or newer."
4141
exit -1
4242
fi

0 commit comments

Comments
 (0)