docs: readlink before copy license file

Instead of a license file there may be a symlink.
This commit is contained in:
Anton Midyukov 2024-06-24 19:51:19 +07:00
parent 1717eaecf0
commit 1c70724e7e

View File

@ -1,9 +1,9 @@
#!/bin/sh
#!/bin/sh -efu
# copy distro's licenses into image's rootdir
cd /usr/share/alt-notes || exit 0
find -maxdepth 1 -type f -name "license*.html" -print |
while read FILE; do
cp -av "$FILE" $WORKDIR/
cp -av $(readlink -e "$FILE") $WORKDIR/
done