From cb20707a118354625a8ea31fa788e66ce820e2af Mon Sep 17 00:00:00 2001
From: Robert Martin-Legene <robert@nic.ar>
Date: Thu, 23 May 2019 19:36:55 -0300
Subject: [PATCH] Hay que copiar despues que existe la carpeta de destino

---
 bin/installbfa.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/installbfa.sh b/bin/installbfa.sh
index cc1a2e2..cebc3c7 100755
--- a/bin/installbfa.sh
+++ b/bin/installbfa.sh
@@ -154,10 +154,6 @@ function usersetup
 
 function userconfig
 {
-    if [ ! -e "${BFAHOME}/bin/env" ]
-    then
-        cp -p ${BFAHOME}/$envfile ${BFAHOME}/bin/env
-    fi
     if [ $( expand < .bashrc | grep -E "source ${BFAHOME}/bin/env" | wc -l ) -eq 0 ]
     then
         info "Adding to automatically source ${BFAHOME}/bin/env via .bashrc"
@@ -173,6 +169,10 @@ function userconfig
         cd "$BFAHOME"
         git pull
     fi
+    if [ ! -e "${BFAHOME}/bin/env" ]
+    then
+        cp -p ${BFAHOME}/$envfile ${BFAHOME}/bin/env
+    fi
     PATH=${PATH}:${BFAHOME}/bin
 }
 
-- 
GitLab