From: Tapio Tallgren Date: Mon, 21 Aug 2017 07:39:38 +0000 (+0300) Subject: Add ~/.local/bin to PATH if it is not there already X-Git-Tag: 6.0.0~332 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F39729%2F5;p=releng-xci.git Add ~/.local/bin to PATH if it is not there already Change-Id: Ie9481ce8ec891313b613d824a8f8943e706884f7 Signed-off-by: Tapio Tallgren --- diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh index db0a714e..20d0247e 100755 --- a/xci/xci-deploy.sh +++ b/xci/xci-deploy.sh @@ -37,6 +37,10 @@ source "$XCI_PATH/config/${XCI_FLAVOR}-vars" # source xci configuration source $XCI_PATH/config/env-vars +if [[ -z $(echo $PATH | grep "$HOME/.local/bin") ]]; then + export PATH="$HOME/.local/bin:$PATH" +fi + #------------------------------------------------------------------------------- # Sanitize local development environment variables #-------------------------------------------------------------------------------