config/functions: log safe_remove as a qa check

This commit is contained in:
Lukas Rusak 2022-06-28 12:44:56 -07:00
parent 3fa587eb52
commit 27b48ddff2
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3

View File

@ -185,10 +185,8 @@ safe_remove() {
for path in "$@" ; do
if [ -e "${path}" -o -L "${path}" ]; then
rm -r "${path}"
elif [ -n "${PKG_NAME}" ]; then
print_color CLR_WARNING "safe_remove: path does not exist: [${PKG_NAME}]: ${path}\n"
else
print_color CLR_WARNING "safe_remove: path does not exist: ${path}\n"
log_qa_check "safe_remove" "path does not exist: ${path}"
fi
done
}