From 11c366d6031c4e32bb477c45afee7c575d85af66 Mon Sep 17 00:00:00 2001 From: Maxim Khlobystov <maxim.khlobystov@gmail.com> Date: Wed, 16 Jan 2019 12:07:34 -0500 Subject: [PATCH] Make sure linter doesn't use removed files --- build_script.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build_script.sh b/build_script.sh index 85098711c0..666fcd2517 100755 --- a/build_script.sh +++ b/build_script.sh @@ -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 -- GitLab