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
+1 -3
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
}