makechrootpkg: Simplify symlink replacement
This commit is contained in:
parent
58968cfaa2
commit
4bafd641ab
|
@ -236,8 +236,7 @@ move_products() {
|
||||||
|
|
||||||
# Fix broken symlink because of temporary chroot PKGDEST /pkgdest
|
# Fix broken symlink because of temporary chroot PKGDEST /pkgdest
|
||||||
if [[ "$PWD" != "$PKGDEST" && -L "$PWD/${pkgfile##*/}" ]]; then
|
if [[ "$PWD" != "$PKGDEST" && -L "$PWD/${pkgfile##*/}" ]]; then
|
||||||
rm "$PWD/${pkgfile##*/}"
|
ln -sf "$PKGDEST/${pkgfile##*/}"
|
||||||
ln -s "$PKGDEST/${pkgfile##*/}" "$PWD/${pkgfile##*/}"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue