diff --git a/build_scripts/build_package.sh b/build_scripts/build_package.sh index 12523b51b6d..aeac22b19d9 100755 --- a/build_scripts/build_package.sh +++ b/build_scripts/build_package.sh @@ -121,7 +121,7 @@ branch="develop" monkey_repo="$DEFAULT_REPO_MONKEY_HOME" monkey_version="dev" package="" -deployment_type="develop" +deployment_type="" while (( "$#" )); do case "$1" in diff --git a/build_scripts/common.sh b/build_scripts/common.sh index 5e029433e2f..a8e7c190a4e 100644 --- a/build_scripts/common.sh +++ b/build_scripts/common.sh @@ -16,8 +16,10 @@ copy_monkey_island_to_build_dir() { } modify_deployment() { - local deployment_file_path="$2/monkey_island/cc/deployment.json" - echo -e "{\n \"deployment\": \"$1\"\n}" > $deployment_file_path + if [ -n "$1" ]; then + 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() {