From b7355d4c14fe21cfdad3b1d2757ba420cdcd46bb Mon Sep 17 00:00:00 2001 From: Peter Polakovic Date: Fri, 11 Feb 2022 20:29:49 +0100 Subject: [PATCH] agent_astap: on more temporary files removel fix --- indigo_drivers/agent_astap/indigo_agent_astap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indigo_drivers/agent_astap/indigo_agent_astap.c b/indigo_drivers/agent_astap/indigo_agent_astap.c index 6644ab049..39cff1a2f 100644 --- a/indigo_drivers/agent_astap/indigo_agent_astap.c +++ b/indigo_drivers/agent_astap/indigo_agent_astap.c @@ -484,7 +484,7 @@ static bool astap_solve(indigo_device *device, void *image, unsigned long image_ } cleanup: /* globs do not work in quotes */ - execute_command(device, "rm -rf \"image_\"%s.*", base); + execute_command(device, "rm -rf \"%s\"/image_*", base_dir); if (message[0] == '\0') indigo_update_property(device, AGENT_PLATESOLVER_WCS_PROPERTY, NULL); else