Fix replacement of symlinks to directories
This commit is contained in:
parent
1a97be4a25
commit
6789eb88e2
@ -188,7 +188,7 @@ mv_files_and_dirs() {
|
||||
cwd="$PWD"
|
||||
cd "$1"
|
||||
command find . -type d -exec mkdir -p "$2/{}" ";"
|
||||
command find . -type l -exec sh -c "tgt=\$(command readlink -n \"{}\"); command ln -sf \"\$tgt\" \"$2/{}\"; command rm -f \"{}\"" ";"
|
||||
command find . -type l -exec sh -c "tgt=\$(command readlink -n \"{}\"); command ln -snf \"\$tgt\" \"$2/{}\"; command rm -f \"{}\"" ";"
|
||||
command find . -type f -exec mv "{}" "$2/{}" ";"
|
||||
cd "$cwd"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user