Skip to content
Snippets Groups Projects
Commit 25f76c53 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Merge branch 'master' of https://gitlab.bfa.ar/blockchain/nucleo

parents 2440e9d1 cea1dd25
No related branches found
No related tags found
No related merge requests found
...@@ -34,10 +34,10 @@ function runasownerof ...@@ -34,10 +34,10 @@ function runasownerof
pushd $path > /dev/null pushd $path > /dev/null
if [ $( stat --format=%u . ) -ne $UID ] if [ $( stat --format=%u . ) -ne $UID ]
then then
precmd="sudo --preserve-env --set-home -u $( stat --format=%U . )" precmd="sudo --preserve-env --set-home -u $( stat --format=%U . ) PATH=${PATH}"
fi fi
unset path unset path
${precmd} "PATH=${PATH}" "$@" ${precmd} "$@"
rv=$? rv=$?
popd > /dev/null popd > /dev/null
unset precmd unset precmd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment