Merge pull request #3717 from ToKe79/le92-func_safe_remove_symlink

safe_remove: remove also broken symbolic links
This commit is contained in:
MilhouseVH 2019-07-24 15:13:25 +01:00 committed by GitHub
commit cc23c1aa7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"