This repository was archived by the owner on Sep 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1212#
1313# Output: Generation of API and models based on Rapid7 Nexpose and InsightVM Swagger file
1414
15+ # NOTE: Pulling from endpoint no longer up to date; manually update version to match console prior to running
16+ LIB_VERSION=6.6.55
17+
1518# Download InsightVM/Nexpose Console Version and update package in config.json
1619# VERSION_URL="http://download2.rapid7.com/download/InsightVM/Rapid7Setup-Linux64.bin.version"
1720# CONSOLE_VERSION=$(curl $VERSION_URL)
1821# LIB_VERSION="$CONSOLE_VERSION"
19- # sed -i '' "s/\"packageVersion\": \".*\"/\"packageVersion\": \"$LIB_VERSION\"/g" ./setup_workspace/config.json
20- # echo "Library Version: $LIB_VERSION"
22+ sed -i ' ' " s/\" packageVersion\" : \" .*\" /\" packageVersion\" : \" $LIB_VERSION \" /g" ./setup_workspace/config.json
23+ echo " Library Version: $LIB_VERSION "
2124
2225
2326# Environment variable for branch name
2629# Download swagger file
2730API_FILE_DIR=" api-files/"
2831SWAGGER_FILE=$API_FILE_DIR " console-swagger.json"
29- # SWAGGER_URL="https://help.rapid7.com/insightvm/en-us/api/api.json"
3032SWAGGER_URL=" https://$2 :3780/api/3/json"
3133wget --no-check-certificate $SWAGGER_URL -O $SWAGGER_FILE
3234
7981LC_ALL=C find . -type f -not -path " ./.git/*" -exec sed -i ' ' " s/$2 :3780/localhost:3780/g" {} +
8082
8183git checkout -b release/$CONSOLE_VERSION
82- # git add *
83- # git commit -a -m "Update generated library to version: $LIB_VERSION"
84+ git add *
85+ git commit -a -m " Update generated library to version: $LIB_VERSION "
You can’t perform that action at this time.
0 commit comments