diff --git a/config/functions b/config/functions index 376d50dc01..66f44c439c 100644 --- a/config/functions +++ b/config/functions @@ -136,7 +136,7 @@ safe_remove() { [ -z "${path}" ] && return 0 - if [ -f "${path}" -o -d "${path}" ]; then + 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"