summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorElias Lutfallah <elias.lutfallah@orbitz.com>2011-03-05 15:07:39 -0600
committerElias Lutfallah <elias.lutfallah@orbitz.com>2011-03-05 15:28:23 -0600
commitf4a0af16eaa30571662017cab7e106a96b99988d (patch)
treed44a3e00c206c055dd7a67b5d01b59aa600bff68 /README
parent609ddcf2b1ae0c835973a584ac20796d962334f6 (diff)
downloadpuppet-f4a0af16eaa30571662017cab7e106a96b99988d.tar.gz
puppet-f4a0af16eaa30571662017cab7e106a96b99988d.tar.xz
puppet-f4a0af16eaa30571662017cab7e106a96b99988d.zip
Refactoring duplicate code and logic in prep for DESTDIR deprecation.
DESTDIR is slated to be deprecated. The block of code that checks for DESTDIR contained duplicate code as the block that checks for --destdir. The dupe code has been moved out of the destdir checks. I have also flipped the order of checking. Previously, if the DESTDIR env was set it would be used regardless of whether or not the --destdir flag was set. No env, no flag: ./install.rb destdir = nil Env only: DESTDIR="foo" ./install.rb destdir = foo Flag only: ./install.rb --destdir="bar" destdir = bar Both (uses flag): DESTDIR="foo" ./install.rb --destdir="bar" destdir = bar
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions