diff --git a/make/install.mk b/make/install.mk index cdc46c780dde4268f3b5749770ff6ebaabf886db..c8efe37fb4ce1fa8b581a1a20c1d1ff95c3a6478 100644 --- a/make/install.mk +++ b/make/install.mk @@ -3,7 +3,7 @@ ANKI_COL_WAL := $(ANKI_COL_DIR)/collection.anki2-wal .PHONY: install install: $(APKGS) - $(if $(wildcard $(ANKI_COL_DIR)), $(error Cannot install while Anki is open)) + $(if $(wildcard $(ANKI_COL_WAL)), $(error Cannot install while Anki is open)) # make sure data gets overwritten by deleting old data first -rm $(ANKI_COL_DIR)/collection.media/_hd*.js # not running with pipenv because we explicitly want the system anki