Make cleaning cache better.

master
Marko Semet 2020-07-10 17:51:29 +02:00
parent ad1468b201
commit da13c238bc
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ else
then
BUILD_DIR= exec flatpak-builder $3 --arch "$2" --sandbox --rebuild-on-sdk-change --repo "$4" -s "WB_HASH='${HASH}'" "$BUILD_DIR" "$1"
else
BUILD_DIR= flatpak-builder $3 --arch "$2" --sandbox --rebuild-on-sdk-change --repo "$4" -s "WB_HASH='${HASH}'" "$BUILD_DIR" "$1" &&
find .flatpak-builder/cache -delete
(find .flatpak-builder/cache -delete || rm -rf .flatpak-builder/cache) &&
BUILD_DIR= flatpak-builder $3 --arch "$2" --sandbox --rebuild-on-sdk-change --repo "$4" -s "WB_HASH='${HASH}'" "$BUILD_DIR" "$1"
fi
fi