Change the docker and appImage deployment scripts to not alter the deployment string if no deployment argument is passed

This commit is contained in:
VakarisZ 2021-09-15 15:49:17 +03:00
parent c4ab6f4362
commit cfff225ad6
2 changed files with 5 additions and 3 deletions

View File

@ -112,7 +112,7 @@ branch="develop"
monkey_repo="$DEFAULT_REPO_MONKEY_HOME" monkey_repo="$DEFAULT_REPO_MONKEY_HOME"
monkey_version="dev" monkey_version="dev"
package="" package=""
deployment_type="develop" deployment_type=""
while (( "$#" )); do while (( "$#" )); do
case "$1" in case "$1" in

View File

@ -16,8 +16,10 @@ copy_monkey_island_to_build_dir() {
} }
modify_deployment() { modify_deployment() {
local deployment_file_path="$2/monkey_island/cc/deployment.json" if [ -n "$1" ]; then
echo -e "{\n \"deployment\": \"$1\"\n}" > $deployment_file_path local deployment_file_path="$2/monkey_island/cc/deployment.json"
echo -e "{\n \"deployment\": \"$1\"\n}" > $deployment_file_path
fi
} }
add_agent_binaries_to_build_dir() { add_agent_binaries_to_build_dir() {