makechrootpkg: Simplify symlink replacement

This commit is contained in:
Jan Alexander Steffens (heftig) 2017-03-04 15:00:50 +01:00
parent 58968cfaa2
commit 4bafd641ab
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 1 additions and 2 deletions

View File

@ -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