1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-03-04 02:40:38 +00:00

fix: ignore find error if full-build does not exist

This commit is contained in:
Richard Ramos 2019-08-14 11:14:12 -04:00 committed by Andy Tudhope
parent 62bc921bf1
commit c479cb4501

View File

@ -111,7 +111,7 @@ endif
clean-build-dir: ##@clean Remove full-build folder and keep node_modules (depending on environment)
ifeq ($(NODE_ENV),localhost)
find ./full-build -mindepth 1 ! -regex '^./full-build/\(node_modules\|yarn.lock\).*' -delete
find ./full-build -mindepth 1 ! -regex '^./full-build/\(node_modules\|yarn.lock\).*' -delete; 2> /dev/null
else
rm -fr full-build
endif