Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit 52874e4

Browse files
authored
Merge pull request #259 from xwp/fix/jshintignore-absent
Fix EISDIR error when jshint runs without a JSHINT_IGNORE defined
2 parents 0ad3ead + dc2bbbc commit 52874e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check-diff.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function set_environment_variables {
305305
fi
306306
fi
307307
done
308-
if [ -e "$LINTING_DIRECTORY/$JSHINT_IGNORE" ]; then
308+
if [ ! -z "$JSHINT_IGNORE" ] && [ -e "$LINTING_DIRECTORY/$JSHINT_IGNORE" ]; then
309309
JSHINT_IGNORE="$( realpath "$LINTING_DIRECTORY/$JSHINT_IGNORE" )"
310310
fi
311311

0 commit comments

Comments
 (0)