X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=csit.infra.dash%2Fdo_release.sh;h=e4d7e3a3a6bcf22a8ead9adf0e36dabc5582cedd;hb=c9406116477c30590e002809993a9d692b78d25c;hp=ddf0eae6e69f191b111c88370d67c9b089facf20;hpb=62610e87e75e173c5cdac4035c4779c37f7e8e00;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