Skip to content

Commit

Permalink
Make sure linter doesn't use removed files
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximKhlobystov committed Jan 16, 2019
1 parent 82bbeeb commit 11c366d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ if [[ $files = *"bigbluebutton-html5"* ]]; then
cd bigbluebutton-html5
curl https://install.meteor.com/ | sh
meteor npm install
cd ..
if [ $1 = linter ]
then
html5_files=""
list=$(echo $files | tr " " "\n")
for file in $list
do
if [[ $file = bigbluebutton-html5* ]] ; then
if [[ $file = bigbluebutton-html5* ]] && [[ -e $file ]]
then
html5_files+=" $file"
fi
done

cd ..
bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $html5_files
elif [ $1 = acceptance_tests ]
then
Expand Down

0 comments on commit 11c366d

Please sign in to comment.