From 6a241d44ccf13854ed48c87d9081b83d8a8e8dd4 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 10 Mar 2015 22:59:07 -0500 Subject: [PATCH] Fix small issue where eqemu_update.pl script would bomb at the very end of the maps download because of blank string [skip ci] --- utils/scripts/eqemu_update.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/scripts/eqemu_update.pl b/utils/scripts/eqemu_update.pl index 20a5313a6..2c41306fb 100644 --- a/utils/scripts/eqemu_update.pl +++ b/utils/scripts/eqemu_update.pl @@ -14,7 +14,7 @@ if($Config{osname}=~/linux/i){ $OS = "Linux"; } if($Config{osname}=~/Win|MS/i){ $OS = "Windows"; } #::: If current version is less than what world is reporting, then download a new one... -$current_version = 3; +$current_version = 2; if($ARGV[0] eq "V"){ if($ARGV[1] > $current_version){ @@ -362,7 +362,10 @@ sub MapFiles_Fetch{ } #::: Download for($m = 0; $m <= $i; $m++){ - GetRemoteFile("https://raw.githubusercontent.com/Akkadius/EQEmuMaps/master/" . $maps_manifest[$m], "maps/" . $maps_manifest[$m]); + print "'" . $maps_manifest[$m] . "'\n"; + if($maps_manifest[$m] ne ""){ + GetRemoteFile("https://raw.githubusercontent.com/Akkadius/EQEmuMaps/master/" . $maps_manifest[$m], "maps/" . $maps_manifest[$m]); + } } print "\n --- Done Fetching Latest Maps --- \n";