mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #3719 from MilhouseVH/le10-func-safe-remove-symlink
safe_remove: remove also broken symbolic links
This commit is contained in:
commit
91cca040f3
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user