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
|
||||
if [[ "$PWD" != "$PKGDEST" && -L "$PWD/${pkgfile##*/}" ]]; then
|
||||
rm "$PWD/${pkgfile##*/}"
|
||||
ln -s "$PKGDEST/${pkgfile##*/}" "$PWD/${pkgfile##*/}"
|
||||
ln -sf "$PKGDEST/${pkgfile##*/}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue