Ignore apps that have no frontend code instead of failing

This commit is contained in:
Lev Vereshchagin 2022-03-30 11:33:19 +03:00
parent 1f5a194ee9
commit 73f7d944ab

View file

@ -4,8 +4,18 @@ set -x
APP=$1
cleanup() {
rm -rf "apps/$APP"
rm -rf sites/assets/*
}
cd /frappe-bench
if ! test -d "apps/$APP/$APP/public"; then
cleanup
exit 0
fi
# Add all not built assets
cp -r "apps/$APP/$APP/public" "/out/assets/$APP"
@ -19,6 +29,4 @@ echo "$APP" >>sites/apps.txt
yarn --cwd apps/frappe run production --app "$APP"
cp -r sites/assets /out
# Cleanup
rm -rf "apps/$APP"
rm -rf sites/assets/*
cleanup