-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
We are scripting deloy scripts using .js files and want to have them automatically run at deploy time. But we need a proper return code:
al01 /home/kgorman$ cat test.js | mongo
MongoDB shell version: 1.5.2-pre-
url: test
connecting to: test
type "help" for help
> use content
switched to db content
> fdkjfkdjfkdb.bookStyles.ensureIndex(
)
Mon May 24 16:32:33 JS Error: ReferenceError: fdkjfkdjfkdb is not defined (shell):0
>
> bye
al01 /home/kgorman$ echo $?
0