Skip to content

Commit

Permalink
Quote the test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandell committed Aug 23, 2022
1 parent 08e21c6 commit c13bed2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
REM check existence of the credentials dir
if not exist %DOCKER_CERT_PATH% exit /B 1
if not exist "%DOCKER_CERT_PATH%" exit /B 1

REM check existence of the certificate files
if not exist %DOCKER_CERT_PATH%\key.pem exit /B 1
if not exist %DOCKER_CERT_PATH%\cert.pem exit /B 1
if not exist %DOCKER_CERT_PATH%\ca.pem exit /B 1
if not exist "%DOCKER_CERT_PATH%\key.pem" exit /B 1
if not exist "%DOCKER_CERT_PATH%\cert.pem" exit /B 1
if not exist "%DOCKER_CERT_PATH%\ca.pem" exit /B 1

REM keep location of the certificate dir for the next step
echo %DOCKER_CERT_PATH% > cert-path
echo "%DOCKER_CERT_PATH%" > cert-path
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ if not exist cert-path exit /B 1
set /p cert_path=<cert-path

REM check it has been deleted
if exist %cert_path% exit /B 1
if exist "%cert_path%" exit /B 1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
REM check existence of the credentials dir
if not exist %DOCKER_CERT_PATH% exit /B 1
if not exist "%DOCKER_CERT_PATH%" exit /B 1

REM check existence of the certificate files
if not exist %DOCKER_CERT_PATH%\key.pem exit /B 1
if not exist %DOCKER_CERT_PATH%\cert.pem exit /B 1
if not exist %DOCKER_CERT_PATH%\ca.pem exit /B 1
if not exist "%DOCKER_CERT_PATH%\key.pem" exit /B 1
if not exist "%DOCKER_CERT_PATH%\cert.pem" exit /B 1
if not exist "%DOCKER_CERT_PATH%\ca.pem" exit /B 1

REM keep location of the certificate dir for the next step
echo %DOCKER_CERT_PATH% > cert-path
echo "%DOCKER_CERT_PATH%" > cert-path

0 comments on commit c13bed2

Please sign in to comment.