From 283845b18c97cfbae75e39ae89fbaed2e1ee0a91 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 24 May 2016 19:29:09 +0200 Subject: update scripts --- packages/scripts/resources/lib/activate.inc.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'packages/scripts/resources/lib/activate.inc.sh') diff --git a/packages/scripts/resources/lib/activate.inc.sh b/packages/scripts/resources/lib/activate.inc.sh index 79bed6b..b77b9fd 100644 --- a/packages/scripts/resources/lib/activate.inc.sh +++ b/packages/scripts/resources/lib/activate.inc.sh @@ -1,3 +1,17 @@ +# use to process /opt/activator entries +__activator() { + for product in $*; do + if [ -d "/opt/activator/$product/env" ]; then + for env in /opt/activator/$product/env/*; do + name=$(basename "$env") + eval "export '$name'='$(cat $env)'" + done + fi + if [ -d "/opt/activator/$product/bin" ]; then + export PATH="/opt/activator/$product/bin":$PATH + fi + done +} # non-interactive activate __activate_env() { -- cgit v1.2.1