]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: preserve symlink in inst_recursive()
authorFranck Bui <fbui@suse.com>
Tue, 2 Jul 2024 13:20:18 +0000 (15:20 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 2 Jul 2024 17:06:21 +0000 (19:06 +0200)
On SUSE this function is used to copy symlinks installed in *.wants/
directories.

test/test-functions

index 16e9c9c12ae49ef64aa74fb16a73a9cebb0006f4..03f188b0a2574960fabeb241e1d1319a582e3963 100644 (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