From cea1dd25b22cfc902ce0019a1fcc457bec55f08e Mon Sep 17 00:00:00 2001
From: "Mariano Absatz (git)" <scm@baby.com.ar>
Date: Mon, 10 Jun 2019 15:18:14 -0300
Subject: [PATCH] agrego el PATH=${PATH} en precmd ya que si no hacemos sudo no
 hace falta

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

diff --git a/bin/installbfa.sh b/bin/installbfa.sh
index c98b217..8d99463 100755
--- a/bin/installbfa.sh
+++ b/bin/installbfa.sh
@@ -34,10 +34,10 @@ function runasownerof
     pushd $path > /dev/null
     if [ $( stat --format=%u . ) -ne $UID ]
     then
-        precmd="sudo --preserve-env --set-home -u $( stat --format=%U . )"
+        precmd="sudo --preserve-env --set-home -u $( stat --format=%U . ) PATH=${PATH}"
     fi
     unset path
-    ${precmd} "PATH=${PATH}" "$@"
+    ${precmd} "$@"
     rv=$?
     popd > /dev/null
     unset precmd
-- 
GitLab