From 4baea085f159b62581e6389d0314f23d73a7edec Mon Sep 17 00:00:00 2001 From: Casey Bisson Date: Fri, 19 May 2017 12:12:53 -0700 Subject: [PATCH] explain the source of the profile --- triton-docker | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/triton-docker b/triton-docker index ac084d6..7832694 100644 --- a/triton-docker +++ b/triton-docker @@ -13,7 +13,14 @@ function checkCurlInstalled () { # Emit the current Triton profile and time function currentProfile () { - echo "Executing in '$(triton profile get | awk 'NR == 1 {print $2}')' at $(date +'%r')" + if [ -n "$TRITON_PROFILE" ] + then + local profile_source='via env var; use `eval "$(triton env )"` to change' + else + local profile_source='default; use `triton profile set ` to change' + fi + + echo "Executing in '$(triton profile get | awk 'NR == 1 {print $2}')' (${profile_source}) at $(date +'%r')" } # Check if the Docker binary (named triton-docker-helper) is installed and executable