Skip to content

Commit

Permalink
fix: build script should not fail if python cache dir is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
stekern committed Dec 13, 2021
1 parent c98b7c5 commit db642b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ set -eux -o pipefail
mkdir dist

cp -r webapp_deploy dist/
[ -e dist/webapp_deploy/__pycache__ ] && rm dist/webapp_deploy/__pycache__ -rf
if [ -e dist/webapp_deploy/__pycache__ ]; then
rm dist/webapp_deploy/__pycache__ -rf
fi

# We currently do not install requirements.txt as the
# items are already present in lambda runtime.

0 comments on commit db642b9

Please sign in to comment.