mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
config/functions: log safe_remove as a qa check
This commit is contained in:
+1
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user