From 7a7ff89ff16542d30ff7c1f70689236b8fd9c607 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Thu, 7 Sep 2023 00:07:59 -0400 Subject: acid: build: Cache path to the docker-compose.yml file When a service entry is removed from $CYCHE_SERVICES, this value is lost, preventing us from properly tearing down the service. Signed-off-by: Malfurious --- acid/cyche-build | 1 + acid/cyche-source | 1 + 2 files changed, 2 insertions(+) diff --git a/acid/cyche-build b/acid/cyche-build index 310a087..5920a9e 100755 --- a/acid/cyche-build +++ b/acid/cyche-build @@ -43,6 +43,7 @@ docker compose $next --file "$2" up \ --remove-orphans \ --force-recreate +echo "$2" >.git/previous_file echo "$3" >.git/previous_hash if [ "$4" == "--self" ]; then diff --git a/acid/cyche-source b/acid/cyche-source index ee4caca..09cfa72 100755 --- a/acid/cyche-source +++ b/acid/cyche-source @@ -29,6 +29,7 @@ if ! [ -d "$1" ]; then git clone "$2" "$1" >&2 || exit 2 touch "$1/.git/previous_hash" touch "$1/.git/previous_slug" + touch "$1/.git/previous_file" fi cd "$1" -- cgit v1.2.3