aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wine.eselect8
1 files changed, 5 insertions, 3 deletions
diff --git a/wine.eselect b/wine.eselect
index ff81c3d..db1d7ae 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -28,9 +28,11 @@ wine-run() {
"${@}"
- # hack wrt update given PATH is not updated in pkg_postinst (noisy)
- [[ ${PATH} == @(|*:)"${EPREFIX}${WINEETC}/bin"*(/)@(|:*) || \
- ${1} == wine-update ]] ||
+ # try to warn about about missing PATH, but stay quiet with doas/sudo
+ # given may be using a temporary secure PATH (also skip with update
+ # given PATH is not updated when ran from ebuilds in pkg_postinst)
+ [[ ${PATH} == @(|*:)"${EPREFIX}${WINEETC}/bin"*(/)@(|:*) ||
+ -v DOAS_USER || -v SUDO_USER || ${1} == wine-update ]] ||
write_warning_msg "'${EPREFIX}${WINEETC}/bin' missing from PATH, may need to run '. ${EROOT}/etc/profile'"
${shopt_reset}