Skip to content

Commit

Permalink
added quotes for windows users with spcaes
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalk007 committed Aug 21, 2024
1 parent 66a56f3 commit 74dd74a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions host/windows/readconf.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:: Prints the extension configuration to stdout (in JSON format).

set HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension
set CONF_FILE=%HOME_DIR%\jfrog-docker-desktop-extension.conf
set "HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension"
set "CONF_FILE=%HOME_DIR%\jfrog-docker-desktop-extension.conf"

type %CONF_FILE%
6 changes: 3 additions & 3 deletions host/windows/runcli.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

:: Runs JFrog CLI with the given arguments. The JFrog CLI's home directory is the extension's home directory.

set HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension
set LOGS_DIR=%HOME_DIR%\logs
set "HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension"
set "LOGS_DIR=%HOME_DIR%\logs"

set JFROG_CLI_HOME_DIR=%HOME_DIR%
set "JFROG_CLI_HOME_DIR=%HOME_DIR%"
set JFROG_CLI_USER_AGENT=jfrog-docker-extension
set JFROG_CLI_LOG_LEVEL=DEBUG
set CI=true
Expand Down
2 changes: 1 addition & 1 deletion host/windows/scanpermissions.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

:: Checks whether the user has permissions to run scans in Xray. The return value (in stdout) is the HTTP code returned from Xray.

set JFROG_CLI_HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension
set "JFROG_CLI_HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension"

%~dp0jf xr curl --server-id validation -X POST -H "Content-Type:application/json" -d {\"component_details\":[{\"component_id\":\"testComponent\"}]} api/v1/summary/component -s --output nul -w %%{exitcode},%%{http_code}
6 changes: 3 additions & 3 deletions host/windows/writeconf.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

:: Gets the extension configuration (in JSON format) as an argument and writes it to the configuration file.

set HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension
set CONF_FILE=%HOME_DIR%\jfrog-docker-desktop-extension.conf
set "HOME_DIR=%USERPROFILE%\.jfrog-docker-desktop-extension"
set "CONF_FILE=%HOME_DIR%\jfrog-docker-desktop-extension.conf"

if not exist %HOME_DIR% mkdir %HOME_DIR%
if not exist "%HOME_DIR%" mkdir "%HOME_DIR%"
echo %* > %CONF_FILE%

0 comments on commit 74dd74a

Please sign in to comment.