diff options
Diffstat (limited to 'python/codegen_python_client.sh')
-rwxr-xr-x | python/codegen_python_client.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/codegen_python_client.sh b/python/codegen_python_client.sh index 4cd30c44..3344c214 100755 --- a/python/codegen_python_client.sh +++ b/python/codegen_python_client.sh @@ -6,7 +6,7 @@ set -o pipefail OUTPUT=`pwd`/codegen-out mkdir -p $OUTPUT # Strip tags, so entire API is under a single class -cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" > $OUTPUT/api.yml +cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" | sed 's/\[https\]/\[http\]/g' > $OUTPUT/api.yml docker run \ -v $OUTPUT:/tmp/swagger/ \ @@ -23,4 +23,5 @@ mkdir -p tests/codegen_tests cp -r $OUTPUT/fatcat_client/* fatcat_client cp -r $OUTPUT/test/* tests/codegen_tests cp $OUTPUT/README.md README_codegen.md -#rm -rf $OUTPUT +# safer than 'rm -rf $OUTPUT' +mv $OUTPUT /tmp |