diff options
author | 2017-08-21 10:39:38 +0300 | |
---|---|---|
committer | 2017-09-08 11:33:15 +0000 | |
commit | 0229646cf9676fec855bd0de195d9dc4a7a9873b (patch) | |
tree | c94005a9bc3e512aa267e3535350eecfbeff72c0 | |
parent | b9224a90765f5ce37d142b5cbd110248ae77249b (diff) |
Add ~/.local/bin to PATH if it is not there already
Change-Id: Ie9481ce8ec891313b613d824a8f8943e706884f7
Signed-off-by: Tapio Tallgren <tapio.tallgren@nokia.com>
-rwxr-xr-x | xci/xci-deploy.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 #------------------------------------------------------------------------------- |