fastapi/scripts/zip-docs.sh

12 lines
114 B
Bash

#!/usr/bin/env bash
set -x
set -e
cd ./site
if [ -f docs.zip ]; then
rm -rf docs.zip
fi
zip -r docs.zip ./