1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-03 17:47:28 +03:00

test: preserve symlink in inst_recursive()

On SUSE this function is used to copy symlinks installed in *.wants/
directories.

(cherry picked from commit 855bad331e28a03d7ad5831caacd3481db938180)
This commit is contained in:
Franck Bui 2024-07-02 15:20:18 +02:00 committed by Luca Boccassi
parent 10b7e0a0af
commit f52475dcf3

View File

@ -2960,6 +2960,8 @@ inst_recursive() {
while read -r item; do
if [[ -d "$item" ]]; then
inst_dir "$item"
elif [[ -L "$item" ]]; then
inst_symlink "$item"
elif [[ -f "$item" ]]; then
inst_simple "$item"
fi