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:
parent
62bc921bf1
commit
c479cb4501
2
Makefile
2
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user