com web/rmtools: don't leave lock around: bin/snapshot_task .bat
| From: | Anatol Belski | Date: | Mon, 28 Nov 2016 16:34:02 +0000 |
| Subject: | com web/rmtools: don't leave lock around: bin/snapshot_task .bat | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25884@lists.php.net to get a copy of this message | ||
Commit: 796cfad5ffaf83efb28c8283bcd7d8d26cf85bc4
Author: Anatol Belski <ab@php.net> Mon, 28 Nov 2016 17:34:02 +0100
Parents: c30ba01fcfb5ad8a83d47f91f04a25611b13410d
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=796cfad5ffaf83efb28c8283bcd7d8d26cf85bc4
Log:
don't leave lock around
Changed paths:
M bin/snapshot_task.bat
Diff:
diff --git a/bin/snapshot_task.bat b/bin/snapshot_task.bat
index 6591485..3a99c0f 100644
--- a/bin/snapshot_task.bat
+++ b/bin/snapshot_task.bat
@@ -22,6 +22,7 @@ ECHO running > %LOCK_FILE%
if not exist "%PHP_RMTOOLS_ROOT_PATH%\data\config\credentials_ftps.php" (
echo FTP config %PHP_SDK_ROOT_PATH%\data\config\credentials_ftps.php not found >> %LOG_FILE%
2<&1
+ del %LOCK_FILE% >> %LOG_FILE% 2<&1
exit /b 3
)