Address permission issue when cleaning added packages (#4628)

This commit is contained in:
Igor Pečovnik 2022-12-31 15:54:39 +01:00 committed by GitHub
parent b120ddaed0
commit 7684dae801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ cp armbian.key "${2}"/public/
# remove debs if no errors found
if [[ $errors -eq 0 ]]; then
echo "Purging incoming debs"
find "${1}" -name "*.deb" -type f -delete
sudo find "${1}" -name "*.deb" -type f -delete
else
display_alert "There were some problems $err_txt" "leaving incoming directory intact" "err"
fi