mirror of
https://github.com/chenasraf/nextcloud-forum.git
synced 2026-05-18 01:28:58 +00:00
build: fail early for unclean git tree in update-deps make target
This commit is contained in:
8
Makefile
8
Makefile
@@ -314,7 +314,13 @@ update-composer-deps:
|
||||
$(composer_bin) update
|
||||
@echo "\x1b[32mDependencies updated and lockfile refreshed.\x1b[0m"
|
||||
|
||||
update-deps: update-pnpm-deps update-composer-deps
|
||||
update-deps:
|
||||
@if [ -n "$$(git status --porcelain)" ]; then \
|
||||
echo "\x1b[31mError: Working directory is not clean. Please commit or stash changes first.\x1b[0m"; \
|
||||
git status --short; \
|
||||
exit 1; \
|
||||
fi
|
||||
@$(MAKE) update-pnpm-deps update-composer-deps
|
||||
@echo "\x1b[36mAll dependencies updated.\x1b[0m"
|
||||
@echo "\x1b[36mPush changes? [Y/n]\x1b[0m"
|
||||
@read ans; \
|
||||
|
||||
Reference in New Issue
Block a user