diff options
author | Christian Hesse <mail@eworm.de> | 2022-01-17 20:15:24 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-01-17 20:57:19 +0100 |
commit | 25338ca384ddd41c4b9d3ad2a937228562043235 (patch) | |
tree | f86074b732b5cf88108f19f7521aa5fe1554488d | |
parent | ee9818e34dbdfeba3104857a54c8ec1bc6aba4ce (diff) |
global-functions: $DownloadPackage: give url in debug output
(cherry picked from commit 51cd11c80380eac0bfde4649cb30747c198881b7)
-rw-r--r-- | global-functions | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/global-functions b/global-functions index 9579f5c..40cd271 100644 --- a/global-functions +++ b/global-functions @@ -278,13 +278,13 @@ $LogPrintExit2 error $0 ("Downloading required certificate failed.") true; } + :local Url ("https://upgrade.mikrotik.com/routeros/" . $PkgVer . "/" . $PkgFile); $LogPrintExit2 info $0 ("Downloading package file '" . $PkgName . "'...") false; + $LogPrintExit2 debug $0 ("... from url: " . $Url) false; :local Retry 3; :while ($Retry > 0) do={ :do { - / tool fetch check-certificate=yes-without-crl \ - ("https://upgrade.mikrotik.com/routeros/" . $PkgVer . "/" . $PkgFile) \ - dst-path=$PkgDest; + / tool fetch check-certificate=yes-without-crl $Url dst-path=$PkgDest; $WaitForFile $PkgDest; :if ([ / file get [ find where name=$PkgDest ] type ] = "package") do={ |