summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--makechrootpkg.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 766f237..e49bd48 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -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