From a0e372ad5aae6c6cac1df39175038f6d41bc807a Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Wed, 21 Mar 2018 01:35:32 -0700 Subject: [PATCH] fixes to last downloader features --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index f8d6ae1..ec0a56a 100755 --- a/inxi +++ b/inxi @@ -1964,7 +1964,7 @@ sub download_file { elsif ( $dl{'dl'} eq 'wget' && $type eq 'spider'){ $cmd = "$dl{'dl'} $dl{'no-ssl-opt'} $timeout $dl{'spider'} $url"; system($cmd); - $result = $?; + $result = ($?) ? 0 : 1; # reverse these into Perl t/f $debug_data = $result; } }