Skip to content
Snippets Groups Projects
Commit cea1dd25 authored by Mariano Absatz (git)'s avatar Mariano Absatz (git)
Browse files

agrego el PATH=${PATH} en precmd ya que si no hacemos sudo no hace falta

parent 69d6184d
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