X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=csit.infra.dash%2Fdo_release.sh;h=e4d7e3a3a6bcf22a8ead9adf0e36dabc5582cedd;hb=refs%2Fchanges%2F45%2F37645%2F2;hp=ddf0eae6e69f191b111c88370d67c9b089facf20;hpb=8cddfb3bfd02675b78f7c71cb88900ca1d6460b1;p=csit.git diff --git a/csit.infra.dash/do_release.sh b/csit.infra.dash/do_release.sh index ddf0eae6e6..e4d7e3a3a6 100755 --- a/csit.infra.dash/do_release.sh +++ b/csit.infra.dash/do_release.sh @@ -1,13 +1,13 @@ #!/usr/bin/env bash -set -exuo pipefail +set -xuo pipefail command -v zip || exit 1 rm -f app.zip pushd app -find . -type d -name "__pycache__" -exec rm -rf "{}" \; || true -find . -type d -name ".webassets-cache" -exec rm -rf "{}" \; || true +find . -type d -name "__pycache__" -exec rm -rf "{}" \; +find . -type d -name ".webassets-cache" -exec rm -rf "{}" \; zip -r ../app.zip . popd