Add ~/.local/bin to PATH if it is not there already 29/39729/5
authorTapio Tallgren <tapio.tallgren@nokia.com>
Mon, 21 Aug 2017 07:39:38 +0000 (10:39 +0300)
committerTapio Tallgren <tapio.tallgren@nokia.com>
Fri, 8 Sep 2017 11:33:15 +0000 (11:33 +0000)
Change-Id: Ie9481ce8ec891313b613d824a8f8943e706884f7
Signed-off-by: Tapio Tallgren <tapio.tallgren@nokia.com>
xci/xci-deploy.sh

index db0a714..20d0247 100755 (executable)
@@ -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
 #-------------------------------------------------------------------------------