Trigger full build when add-on is removed (#14680)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born 2023-03-26 12:50:50 +02:00 committed by GitHub
parent cbb72ed72e
commit 8dd0028315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,10 @@ function build_addon() {
function build_based_on_changes() {
local changed_addon=$(changed_addons | xargs)
if [ $(echo $changed_addon | wc -w) -eq 1 ] && [ $(addon_unrelated_changed_files $changed_addon | wc -l) -eq 0 ]; then
if [ $(echo $changed_addon | wc -w) -eq 1 ] && \
[ $(addon_unrelated_changed_files $changed_addon | wc -l) -eq 0 ] && \
[ -d "./bundles/$changed_addon" ]
then
build_addon $changed_addon
else
build_all