diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-03-04 15:00:50 +0100 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-03-04 15:00:50 +0100 |
commit | 4bafd641ab4e18083a1bac829c0e914523351259 (patch) | |
tree | 020b8fc3f62c349e5922e53a62cb05d38a989a1d /makechrootpkg.in | |
parent | 58968cfaa239c2c4658b86a0fa81cfa1cd33f9cb (diff) | |
download | devtools-4bafd641ab4e18083a1bac829c0e914523351259.tar.xz |
makechrootpkg: Simplify symlink replacement
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 3 |
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 |