From 4bafd641ab4e18083a1bac829c0e914523351259 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Sat, 4 Mar 2017 15:00:50 +0100 Subject: makechrootpkg: Simplify symlink replacement --- makechrootpkg.in | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-24-g4f1b