From 7996a52dfe93168491773f022e9be67fde90b862 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 30 Oct 2023 08:31:27 +0000 Subject: [PATCH] fix(pkg_no_exec): also guard against linking and adding to PATH --- _webi/template.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_webi/template.sh b/_webi/template.sh index 1cc7327..55162e7 100644 --- a/_webi/template.sh +++ b/_webi/template.sh @@ -512,6 +512,10 @@ __bootstrap_webi() { # run post-install functions - just updating PATH by default webi_post_install() { + if test -n "${pkg_no_exec}"; then + return 0 + fi + webi_path_add "$(dirname "$pkg_dst_cmd")" } @@ -629,9 +633,8 @@ __bootstrap_webi() { fi ) - webi_link - if test -z "${pkg_no_exec}"; then + webi_link _webi_enable_exec fi (