mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
53597764c3
Co-authored-by: Akihito Nakano <sora.akatsuki@gmail.com> Co-authored-by: Jeremie Bresson <dev@jmini.fr> Co-authored-by: Jim Schubert <james.schubert@gmail.com> Co-authored-by: Martin Delille <martin@phonations.com> Co-authored-by: Tomasz Prus <tomasz.prus@gmail.com> Co-authored-by: William Cheng <wing328hk@gmail.com>
25 lines
702 B
Bash
Executable File
25 lines
702 B
Bash
Executable File
#!/bin/bash -e
|
|
# this bash script will loop through all the .sh files under bin
|
|
# execute the script and check the result (exit code) to see if
|
|
# there's any error
|
|
|
|
echo "IMPORTANT: this script should be run by the CI (e.g. Shippable) only. There's no need to run this script to update Petstore samples for all generators."
|
|
echo "Please press CTRL+C to stop or the script will continue in 10 seconds."
|
|
|
|
sleep 10
|
|
|
|
for SCRIPT in `ls -l ./bin/*.sh | grep -v all`
|
|
do
|
|
if [ -f $SCRIPT -a -x $SCRIPT ]
|
|
then
|
|
echo "Running $SCRIPT"
|
|
$SCRIPT
|
|
rc=$?
|
|
if [[ $rc != 0 ]]
|
|
then
|
|
echo "ERROR!! FAILED TO RUN $SCRIPT"
|
|
exit $rc;
|
|
fi
|
|
fi
|
|
done
|