diff --git a/bin/installbfa.sh b/bin/installbfa.sh index c98b217d9d9069094382a5620c4ea1fcf45bccac..8d99463ccbd01e4e550aa38dc88d44cfdeedeee2 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