fix: use the -r flag to remove saved scripts dir

This commit is contained in:
ngn 2024-08-12 03:19:54 +03:00
parent 21c30cc8e5
commit c2d3b173e2

View File

@ -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