Skip to content

Commit

Permalink
[dist] include /bin in PATH on Fedora 17
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Dec 19, 2012
1 parent 9b36071 commit bf34c47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dist/obsworker
Expand Up @@ -20,6 +20,13 @@

. /etc/rc.status

# Is the worker running on Fedora >= 17 ?
# It lacks the complete path to build other distros then
bash_bin=`which bash`
if [ "$bash_bin" != "${bash_bin#/usr}" ]; then
export PATH="/bin:$PATH"
fi

if test -e /etc/sysconfig/proxy; then
. /etc/sysconfig/proxy
fi
Expand Down

0 comments on commit bf34c47

Please sign in to comment.