Fixes issue 27641: Skip enyo files off jsLint
authorRafa Alonso <rafael.alonso@openbravo.com>
Thu, 18 Sep 2014 19:21:35 +0200
changeset 24449 caec3903b0e2
parent 24448 6e24dd2e0fe8
child 24450 8854431e7ea2
Fixes issue 27641: Skip enyo files off jsLint
modules/org.openbravo.client.kernel/jslint/jscheck-module-hg
--- a/modules/org.openbravo.client.kernel/jslint/jscheck-module-hg	Thu Sep 18 18:18:22 2014 +0200
+++ b/modules/org.openbravo.client.kernel/jslint/jscheck-module-hg	Thu Sep 18 19:21:35 2014 +0200
@@ -4,8 +4,14 @@
 echo "Performing jslint check on modified js resources"
 for i in $(hg log -r $HG_NODE --template '{files}')
 do
-  if [ -f "$i" -a -n "$(echo $i | awk '/.js$/')" ]; then
-    ../org.openbravo.client.kernel/jslint/jslint-module $i || exit 1
+	if [[ $i == *enyo* ]]
+	then
+	  echo "Skipping " $i;
+	else
+	  if [ -f "$i" -a -n "$(echo $i | awk '/.js$/')" ]
+	  then
+	    ../org.openbravo.client.kernel/jslint/jslint-module $i || exit 1
+		fi
   fi
 done