Commit 1c70724e authored by Anton Midyukov's avatar Anton Midyukov

docs: readlink before copy license file

Instead of a license file there may be a symlink.
parent 1717eaec
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment