mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
capsman-download-packages: lock against multiple invocation
This commit is contained in:
@ -5,8 +5,11 @@
|
||||
#
|
||||
# download and cleanup packages for CAP installation from CAPsMAN
|
||||
|
||||
:global DownloadPackage;
|
||||
:global CleanFilePath;
|
||||
:global DownloadPackage;
|
||||
:global ScriptLock;
|
||||
|
||||
$ScriptLock "capsman-download-packages";
|
||||
|
||||
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
|
||||
:local InstalledVersion [ / system package update get installed-version ];
|
||||
|
Reference in New Issue
Block a user