From 045b50a77c4803bba8a117c80f3881675e33df02 Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Tue, 18 May 2021 12:07:00 -0400 Subject: [PATCH] force deletion, so no error if file doesn't exist --- {{ cookiecutter.repo_name }}/Makefile.envs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{ cookiecutter.repo_name }}/Makefile.envs b/{{ cookiecutter.repo_name }}/Makefile.envs index 3496e75..9601aee 100644 --- a/{{ cookiecutter.repo_name }}/Makefile.envs +++ b/{{ cookiecutter.repo_name }}/Makefile.envs @@ -35,7 +35,7 @@ delete_environment: ifeq (conda,$(VIRTUALENV)) @echo "Deleting conda environment." $(CONDA_EXE) env remove -n $(PROJECT_NAME) - rm environment.$(ARCH).lock.yml + rm -f environment.$(ARCH).lock.yml ifneq ("X$(wildcard .post-delete-environment.txt)","X") @cat .post-delete-environment.txt endif