Skip to content
Snippets Groups Projects
Commit 11c366d6 authored by Maxim Khlobystov's avatar Maxim Khlobystov
Browse files

Make sure linter doesn't use removed files

parent 82bbeeb8
No related branches found
No related tags found
No related merge requests found
...@@ -6,18 +6,19 @@ if [[ $files = *"bigbluebutton-html5"* ]]; then ...@@ -6,18 +6,19 @@ if [[ $files = *"bigbluebutton-html5"* ]]; then
cd bigbluebutton-html5 cd bigbluebutton-html5
curl https://install.meteor.com/ | sh curl https://install.meteor.com/ | sh
meteor npm install meteor npm install
cd ..
if [ $1 = linter ] if [ $1 = linter ]
then then
html5_files="" html5_files=""
list=$(echo $files | tr " " "\n") list=$(echo $files | tr " " "\n")
for file in $list for file in $list
do do
if [[ $file = bigbluebutton-html5* ]] ; then if [[ $file = bigbluebutton-html5* ]] && [[ -e $file ]]
then
html5_files+=" $file" html5_files+=" $file"
fi fi
done done
cd ..
bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $html5_files bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $html5_files
elif [ $1 = acceptance_tests ] elif [ $1 = acceptance_tests ]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment