From e117238c0d76ec708589dba437309fc1883ab536 Mon Sep 17 00:00:00 2001 From: davidfrickert Date: Fri, 6 Dec 2024 18:33:11 +0100 Subject: [PATCH] makefile: tiny fix to not fail cleanup if files/folders dont exist --- charts/nextcloud/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/charts/nextcloud/Makefile b/charts/nextcloud/Makefile index 95f5dff..b81b0e0 100644 --- a/charts/nextcloud/Makefile +++ b/charts/nextcloud/Makefile @@ -7,11 +7,13 @@ push_only: helm push nextcloud-${VERSION}.tgz oci://git.djf.lol/davidfrickert/nextcloud build_cleanup: - rm -r charts + rm -rf charts -push_cleanup: - rm nextcloud-${VERSION}.tgz +artifact_cleanup: + rm -f nextcloud-${VERSION}.tgz build: build_only build_cleanup -push: push_only push_cleanup +push: push_only artifact_cleanup_cleanup + +cleanup: build_cleanup artifact_cleanup \ No newline at end of file