From c2d3b173e2c9ff2da20c8e0df544c75b897e4ba7 Mon Sep 17 00:00:00 2001 From: ngn Date: Mon, 12 Aug 2024 03:19:54 +0300 Subject: [PATCH] fix: use the -r flag to remove saved scripts dir --- matter-base/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matter-base/main.sh b/matter-base/main.sh index 27fdf93..ebca147 100755 --- a/matter-base/main.sh +++ b/matter-base/main.sh @@ -188,7 +188,7 @@ rm -f "${target}/certdata.txt" info "Running install scripts" matter-chroot "${target}" bash -c "bash /var/lib/matt/data/scripts/*" > /dev/null check_ret "Failed to run install scripts" -rm -f "${target}/var/lib/matt/data/scripts" +rm -r "${target}/var/lib/matt/data/scripts" info "Setup complete, now creating the archive..." pushd "${target}" > /dev/null