forked from p15670423/monkey
Change the docker and appImage deployment scripts to not alter the deployment string if no deployment argument is passed
This commit is contained in:
parent
c4ab6f4362
commit
cfff225ad6
|
@ -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
|
||||||
|
|
|
@ -16,8 +16,10 @@ copy_monkey_island_to_build_dir() {
|
||||||
}
|
}
|
||||||
|
|
||||||
modify_deployment() {
|
modify_deployment() {
|
||||||
|
if [ -n "$1" ]; then
|
||||||
local deployment_file_path="$2/monkey_island/cc/deployment.json"
|
local deployment_file_path="$2/monkey_island/cc/deployment.json"
|
||||||
echo -e "{\n \"deployment\": \"$1\"\n}" > $deployment_file_path
|
echo -e "{\n \"deployment\": \"$1\"\n}" > $deployment_file_path
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
add_agent_binaries_to_build_dir() {
|
add_agent_binaries_to_build_dir() {
|
||||||
|
|
Loading…
Reference in New Issue