Skip to content

Instantly share code, notes, and snippets.

@konsolebox
Created August 15, 2023 12:58
Show Gist options
  • Save konsolebox/f589a528d2a2fd2bac928e504a38e76a to your computer and use it in GitHub Desktop.
Save konsolebox/f589a528d2a2fd2bac928e504a38e76a to your computer and use it in GitHub Desktop.
diff --git a/libs/core.bash.in b/libs/core.bash.in
index 2800cc5..a3791ba 100644
--- a/libs/core.bash.in
+++ b/libs/core.bash.in
@@ -113,6 +113,9 @@ do_action() {
|| die -q "Action ${subaction} unknown"
check_do "do_${subaction}" "$@"
fi
+ if [[ $? -eq 0 && -e /etc/eselect/hooks/${ESELECT_MODULE_NAME}/${subaction} ]]; then
+ source "/etc/eselect/hooks/${ESELECT_MODULE_NAME}/${subaction}"
+ fi
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment