Skip to content

Commit d812252

Browse files
authored
Update wss-runner.sh
1 parent 5e76664 commit d812252

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

wss-runner.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,12 @@ PROJECT_DIRECTORY=${PROJECT_DIRECTORY:="."}
3434
API_KEY=${API_KEY}
3535
CONFIG_FILE=${CONFIG_FILE:="wss-unified-agent.config"}
3636

37-
echo "Copying project directory and config file from codefresh/volume to image"
38-
cd /wss-scan
39-
mkdir ${PROJECT_DIRECTORY}
40-
cp ../codefresh/volume/${PROJECT_DIRECTORY}/* ${PROJECT_DIRECTORY}
41-
cp ../codefresh/volume/${CONFIG_FILE} /wss-scan/${CONFIG_FILE}
42-
4337
if [[ -z "${API_KEY}" ]]; then
4438
/wss-scan/run_latest_jar.sh -c "${CONFIG_FILE}" -d "${PROJECT_DIRECTORY}"
4539
else
46-
/wss-scan/run_latest_jar.sh -apiKey "${API_KEY}" -c "/wss-scan/${CONFIG_FILE}" -d "/wss-scan/${PROJECT_DIRECTORY}"
40+
/wss-scan/run_latest_jar.sh -apiKey "${API_KEY}" -c "${CONFIG_FILE}" -d "${PROJECT_DIRECTORY}"
4741
fi
4842
echo ""
4943
echo "*******************************************************************************************************************"
5044
echo " Finish Running WhiteSource Unified Agent "
51-
echo "*******************************************************************************************************************"
45+
echo "*******************************************************************************************************************"

0 commit comments

Comments
 (0)