From 91830d78d6f352ee1450263b6466fda5f7c8003c Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Mon, 24 Jun 2019 14:12:59 +0200 Subject: [PATCH] prefix/winnt/profile.bashrc: first, check if usr/lib does exist And fail if creating the back hardlink does fail. Signed-off-by: Michael Haubenwallner --- profiles/prefix/windows/winnt/profile.bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiles/prefix/windows/winnt/profile.bashrc b/profiles/prefix/windows/winnt/profile.bashrc index c0eaec08a6df..b8def6390deb 100644 --- a/profiles/prefix/windows/winnt/profile.bashrc +++ b/profiles/prefix/windows/winnt/profile.bashrc @@ -62,6 +62,7 @@ post_src_install() { ;; esac done + [[ -d usr/$(get_libdir) ]] && find usr/$(get_libdir) -maxdepth 1 -type f -name '*.dll' | while read f do @@ -69,7 +70,7 @@ post_src_install() { ebegin "moving ${f} to usr/bin for native loader" dodir usr/bin || die mv -f "${f}" usr/bin || die - ln -sf "../bin/${f##*/}" "${f}" + ln -sf "../bin/${f##*/}" "${f}" || die eend $? fi done -- 2.26.2