~racb/ubuntu/precise/cobbler/858860

Viewing all changes in revision 64.

  • Committer: Scott Moser
  • Date: 2011-12-22 15:10:10 UTC
  • Revision ID: smoser@ubuntu.com-20111222151010-jbknzngx10dq0ldz
cobbler-ubuntu-import: fix bug that cleaned http_proxy
from the environment if no --proxy was given

It doesn't seem to make a lot of sense, but the "" are
necessary around a '[ -n "$empty_var" ]':
  $ bash -c 'x=""; [ -n $x ] && echo yes || echo no'
  yes
  $ bash -c 'x=""; [ -n "$x" ] && echo yes || echo no'
  no

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: