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

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