Permalink
Browse files

exiting with error code in js script

  • Loading branch information...
1 parent ac114e4 commit a0dbdf60331ce3ec38ae0ea2b1f1db8c0871eb7c @moschel moschel committed Nov 9, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 js
View
5 js
@@ -10,7 +10,7 @@ then
fi
CP=funcunit/java/selenium-java-client-driver.jar:steal/rhino/js.jar
-ERRORLEV=0
+export ERRORLEV=0
if [ $1 = "-e" ]
then
ERRORLEV=1
@@ -53,5 +53,6 @@ java -Xmx512m -Xss1024k -cp $CP org.mozilla.javascript.tools.shell.Main -e _args
if [ $ERRORLEV = "1" -a $? = "1" ]
then
- exit $?
+
+ exit 1
fi

0 comments on commit a0dbdf6

Please sign in to comment.