mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Propperly handle symlinks to directories in rootfs package
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
4498b0ccb0
commit
79ac5f1293
1 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue