From 6a6d3876f6db03d5b17384473318414711d689ff Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Tue, 8 May 2012 00:58:56 +0200 Subject: [PATCH] Use $ENV{http_proxy} instead of prepending the command with a variable --- bin/xt-install-image | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/xt-install-image b/bin/xt-install-image index 37eb11e..2582bc5 100755 --- a/bin/xt-install-image +++ b/bin/xt-install-image @@ -762,18 +762,17 @@ sub do_debootstrap # # Setup http_proxy so that debootstrap pulls files through the apt-proxy # - my $PROXY = ''; if ( $CONFIG{ 'apt_proxy' } ) { print("Using apt_proxy: $CONFIG{'apt_proxy'}\n"); - $PROXY = "http_proxy=\"$CONFIG{'apt_proxy'}\""; + $ENV{'http_proxy'} = $CONFIG{'apt_proxy'}; } # # This is the command we'll run # my $command = - "$PROXY $cmd $EXTRA $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'}"; + "$cmd $EXTRA $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'}"; # # Run the command.