1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-25 20:30:43 +01:00

Propperly handle symlinks to directories in rootfs package

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-09-08 14:33:10 +02:00
parent 4498b0ccb0
commit 79ac5f1293

View file

@ -9,7 +9,8 @@ copy_rootfs_files() {
if [ ! -e "./$fname" ]; then if [ ! -e "./$fname" ]; then
dname=$(dirname $fname) dname=$(dirname $fname)
if [ -d "$pkgdir/$fname" ]; then if [ -d "$pkgdir/$fname" ] && [ ! -L "$pkgdir/$fname" ]
then
mkdir -p "./$fname" mkdir -p "./$fname"
else else
[ "$dname" == "." ] || mkdir -p "./$dname"; [ "$dname" == "." ] || mkdir -p "./$dname";