bend_symlinks did not allow whitespace in filename
set -o noglob
find -P $(realpath $FILE_SYSTEM_ROOT) -type l -print0 |
while ISF= read -r -d '' syml; do
OLD_TARGET=$(realpath -m "$syml" | sed -n -r "/$REGEX_OLD/p")
if [ -z "$OLD_TARGET" ] ; then
# filter non matching
continue
fi
-
include the code -
write a test -
review and merge @henrik
Edited by Henrik tom Wörden