functions: handle relative symlinks in the add_symlink function
-
functions
: preserve relativity of symbolic links created withadd_symlink
Use
find
in place ofreadlink
to return the symlink target just as it is and not the resolved absolute path. This keeps relative symlinks relative. -
functions
: remove special handling of relative symbolic links fromadd_file
and simply useadd_symlink
Now that
add_symlink
preserves relative symlinks, there is no need foradd_file
to copy the symlinks. All symbolic link handling is now left to theadd_symlink
function.