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:15:24 +0100 |
commit | 51cd11c80380eac0bfde4649cb30747c198881b7 (patch) | |
tree | 72ef223d92e3958d38bb95060dba8f606a46cc9f /global-functions | |
parent | db4afe28f06b5bc32cfe6f02b95f174888b3b6cc (diff) |
global-functions: $DownloadPackage: give url in debug output
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/global-functions b/global-functions index 1e402d9..17aa56d 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={ |