Skip to content

Commit

Permalink
Fix typo and detect failures properly.
Browse files Browse the repository at this point in the history
Previously, we might not have noticed if an early generation failed, but the final one succeeded.
  • Loading branch information
bjgill committed Sep 25, 2019
1 parent 1262bda commit db79b25
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/rust-petstore.sh
Expand Up @@ -36,12 +36,12 @@ for spec_path in \
spec=$(basename "$spec_path" | sed 's/.yaml//' | sed 's/.json//' )

for library in hyper reqwest; do
ags="generate --template-dir modules/openapi-generator/src/main/resources/rust
--input-spec $spec_path
--generator-name rust
--output samples/client/petstore/rust/$library/$spec
--additional-properties packageName=${spec}-${library}
--library=$library $@"
java ${JAVA_OPTS} -jar ${executable} ${ags}
args="generate --template-dir modules/openapi-generator/src/main/resources/rust
--input-spec $spec_path
--generator-name rust
--output samples/client/petstore/rust/$library/$spec
--additional-properties packageName=${spec}-${library}
--library=$library $@"
java ${JAVA_OPTS} -jar ${executable} ${args} || exit 1
done
done

0 comments on commit db79b25

Please sign in to comment.