Skip to content

Commit 4e8c705

Browse files
committed
Improve datasheet rendering script
1 parent 7f615de commit 4e8c705

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/datasheet-rendering/render-datasheets.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22

3-
# RENDER_DATASHEETS is set to true by CI
4-
if [ -n "$RENDER_DATASHEETS" ]; then
3+
if [ -n "$CI" ]; then
54
echo "Current system:"
65
uname -a
76
# Fix for SSL problem in phantom.js
@@ -37,7 +36,7 @@ fi
3736
VERSION=`node -v | grep -o 'v\d*'| cut -d "v" -f2`
3837
MIN_VERSION=14
3938

40-
if [ $VERSION -lt $MIN_VERSION ]; then
39+
if [ "$VERSION" -lt $MIN_VERSION ]; then
4140
echo "You're using an old version of Node.js ($VERSION). Please update to $MIN_VERSION or newer."
4241
exit -1
4342
fi

0 commit comments

Comments
 (0)