Closed mdaniel closed 10 years ago
$ java -jar stream2es-b313650b-standalone.jar es \ --source http://localhost:1234/bob \ --target https://localhost/joe ; echo RC=$? create index https://localhost:-1/joe https://localhost/joe connection refused streamed 0 indexed 0 bytes xfer 0 errors null RC=0
Having it return zero tells shell scripts that all went according to plan, which makes bailing out on error with set -e (or even an if) problematic.
set -e
if
Obviously the localhost:-1 is a separate bug itself.
localhost:-1
@mdaniel Thanks for bringing this up; it's bugged me as well. quit use really needs to be cleaned up...
quit
Having it return zero tells shell scripts that all went according to plan, which makes bailing out on error with
set -e
(or even anif
) problematic.Obviously the
localhost:-1
is a separate bug itself.