mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 05:07:37 +00:00
Fix small issue where eqemu_update.pl script would bomb at the very end of the maps download because of blank string [skip ci]
This commit is contained in:
@@ -14,7 +14,7 @@ if($Config{osname}=~/linux/i){ $OS = "Linux"; }
|
|||||||
if($Config{osname}=~/Win|MS/i){ $OS = "Windows"; }
|
if($Config{osname}=~/Win|MS/i){ $OS = "Windows"; }
|
||||||
|
|
||||||
#::: If current version is less than what world is reporting, then download a new one...
|
#::: 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[0] eq "V"){
|
||||||
if($ARGV[1] > $current_version){
|
if($ARGV[1] > $current_version){
|
||||||
@@ -362,8 +362,11 @@ sub MapFiles_Fetch{
|
|||||||
}
|
}
|
||||||
#::: Download
|
#::: Download
|
||||||
for($m = 0; $m <= $i; $m++){
|
for($m = 0; $m <= $i; $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]);
|
GetRemoteFile("https://raw.githubusercontent.com/Akkadius/EQEmuMaps/master/" . $maps_manifest[$m], "maps/" . $maps_manifest[$m]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
print "\n --- Done Fetching Latest Maps --- \n";
|
print "\n --- Done Fetching Latest Maps --- \n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user