aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKostas Andrianos <andrianos.ks>2019-01-14 04:40:32 +0200
committerKostas Andrianos <andrianos.ks>2019-01-14 04:52:03 +0200
commit7b243530d7a3c4eb20d88149ebbca04170cd3b67 (patch)
tree2bc0859e3507e0c1456fc5e5fcc9681b3e9a4797 /tools
parent5a4a93948ccc18f5ed448d53191928839f4aa492 (diff)
Add missing POP to return to the calling directory after error
Diffstat (limited to 'tools')
-rw-r--r--tools/buildsteps/windows/download-dependencies.bat6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/buildsteps/windows/download-dependencies.bat b/tools/buildsteps/windows/download-dependencies.bat
index d8e8ff3178..a316de08be 100644
--- a/tools/buildsteps/windows/download-dependencies.bat
+++ b/tools/buildsteps/windows/download-dependencies.bat
@@ -53,6 +53,12 @@ IF NOT EXIST %FORMED_OK_FLAG% (
ECHO C:\^> SET KODI_MIRROR=http://example.com/pub/xbmc/
ECHO.
ECHO Then, rerun this script.
+
+ REM Restore the previous current directory
+ POPD
+
+ ENDLOCAL
+
EXIT /B 101
)